mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 01:17:07 +08:00
[workqueue] add comment (#9046)
This commit is contained in:
parent
540370e4de
commit
40e64e5be6
@ -404,6 +404,7 @@ rt_err_t rt_workqueue_cancel_work_sync(struct rt_workqueue *queue, struct rt_wor
|
|||||||
{
|
{
|
||||||
/* wait for work completion */
|
/* wait for work completion */
|
||||||
rt_sem_take(&(queue->sem), RT_WAITING_FOREVER);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user