diff options
author | Richard Braun <rbraun@sceen.net> | 2017-02-08 21:58:38 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-02-08 21:58:38 +0100 |
commit | e69a4c4c3ca62d816bb4542792bcc741a7360af2 (patch) | |
tree | 19516cdd779a8a759e26db3cbde4bc4103946dbc /kern/work.c | |
parent | 05f3b97ee07e6af26613dfbfe57619a700aa349a (diff) |
kern/thread: add wait channels
Diffstat (limited to 'kern/work.c')
-rw-r--r-- | kern/work.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/work.c b/kern/work.c index 6c798fbb..3ba6d2b2 100644 --- a/kern/work.c +++ b/kern/work.c @@ -315,7 +315,7 @@ work_process(void *arg) pool->nr_available_threads++; do { - thread_sleep(lock); + thread_sleep(lock, pool, "work_spr"); } while (pool->manager != NULL); list_remove(&self->node); @@ -351,7 +351,7 @@ work_process(void *arg) pool->manager = self; do { - thread_sleep(lock); + thread_sleep(lock, pool, "work_mgr"); } while (work_pool_nr_works(pool) == 0); pool->manager = NULL; |