瀏覽代碼

[workqueue] add comment (#9046)

wdfk-prog 11 月之前
父節點
當前提交
40e64e5be6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      components/drivers/ipc/workqueue.c

+ 1 - 0
components/drivers/ipc/workqueue.c

@@ -404,6 +404,7 @@ rt_err_t rt_workqueue_cancel_work_sync(struct rt_workqueue *queue, struct rt_wor
     {
         /* wait for work completion */
         rt_sem_take(&(queue->sem), RT_WAITING_FOREVER);
+        /* Note that because work items are automatically deleted after execution, they do not need to be deleted again */
     }
     else
     {