summaryrefslogtreecommitdiff
path: root/kern/mutex_i.h
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/mutex_i.h
parent05f3b97ee07e6af26613dfbfe57619a700aa349a (diff)
kern/thread: add wait channels
Diffstat (limited to 'kern/mutex_i.h')
-rw-r--r--kern/mutex_i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/mutex_i.h b/kern/mutex_i.h
index aaaf7cad..5e78a4da 100644
--- a/kern/mutex_i.h
+++ b/kern/mutex_i.h
@@ -77,7 +77,7 @@ mutex_wait(struct mutex *mutex, struct mutex_waiter *waiter)
unsigned int state;
do {
- thread_sleep(&mutex->lock);
+ thread_sleep(&mutex->lock, mutex, "mutex");
state = mutex_tryacquire_slow(mutex);
} while (state != MUTEX_UNLOCKED);