summaryrefslogtreecommitdiff
path: root/kern/sched_prim.h
diff options
context:
space:
mode:
authorAgustina Arzille <avarzille@riseup.net>2017-02-01 12:32:52 -0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-03-04 23:11:20 +0100
commit25f22702f153d62b55cb276152ba5ea935023e6e (patch)
treed93d342c3e7f124df94215a855ca4b99d93012fe /kern/sched_prim.h
parentdc5486ba8801625069fc6172b03e897612f42a90 (diff)
Implement basic sleeping locks for gnumach
* kern/atomic.h: New file. * kern/kmutex.h: New file. * kern/kmutex.c: New file. * Makefrag.am (libkernel_a_SOURCES): Add atomic.h, kmutex.h, kmutex.c. * kern/sched_prim.h (thread_wakeup_prim): Make it return boolean_t. * kern/sched_prim.c (thread_wakeup_prim): Return TRUE if we woke a thread, and FALSE otherwise.
Diffstat (limited to 'kern/sched_prim.h')
-rw-r--r--kern/sched_prim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/sched_prim.h b/kern/sched_prim.h
index dfb2f54b..405e5456 100644
--- a/kern/sched_prim.h
+++ b/kern/sched_prim.h
@@ -72,7 +72,7 @@ extern void thread_sleep(
simple_lock_t lock,
boolean_t interruptible);
extern void thread_wakeup(void); /* for function pointers */
-extern void thread_wakeup_prim(
+extern boolean_t thread_wakeup_prim(
event_t event,
boolean_t one_thread,
int result);