summaryrefslogtreecommitdiff
path: root/kern/work.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-02-08 21:58:38 +0100
committerRichard Braun <rbraun@sceen.net>2017-02-08 21:58:38 +0100
commite69a4c4c3ca62d816bb4542792bcc741a7360af2 (patch)
tree19516cdd779a8a759e26db3cbde4bc4103946dbc /kern/work.c
parent05f3b97ee07e6af26613dfbfe57619a700aa349a (diff)
kern/thread: add wait channels
Diffstat (limited to 'kern/work.c')
-rw-r--r--kern/work.c4
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;