diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2020-10-23 15:02:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-23 15:02:50 -0400 |
| commit | 939bd6ac52aec8def971d19529d0e782aa794ff1 (patch) | |
| tree | 9104cb9bbb58261935187e42f5fea8b3702e0f1f /lib/workqueue.c | |
| parent | 1e4fa7f46cc1c2d1fcb5c427c2d284bd1110a406 (diff) | |
| parent | 70c583eb819d93d8ec494880f4645be0f942c7a5 (diff) | |
Merge pull request #6788 from mjstapp/thread_cancel_off
*: unify thread/task cancel apis
Diffstat (limited to 'lib/workqueue.c')
| -rw-r--r-- | lib/workqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c index 54090d0d0f..f8e4677220 100644 --- a/lib/workqueue.c +++ b/lib/workqueue.c @@ -104,7 +104,7 @@ void work_queue_free_and_null(struct work_queue **wqp) struct work_queue *wq = *wqp; if (wq->thread != NULL) - thread_cancel(wq->thread); + thread_cancel(&(wq->thread)); while (!work_queue_empty(wq)) { struct work_queue_item *item = work_queue_last_item(wq); @@ -215,7 +215,7 @@ void workqueue_cmd_init(void) void work_queue_plug(struct work_queue *wq) { if (wq->thread) - thread_cancel(wq->thread); + thread_cancel(&(wq->thread)); wq->thread = NULL; |
