summaryrefslogtreecommitdiff
path: root/kern/mutex.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-06-18 23:35:45 +0200
committerRichard Braun <rbraun@sceen.net>2014-06-18 23:35:45 +0200
commitc3c302a2041e05765d97b1c8d44735a56da0f1cd (patch)
tree86d79fba374c6a8e4638182124aac5fa260743d0 /kern/mutex.h
parentf6dd434b4b37ca7bcabed3d219bcdf7cd6fce815 (diff)
kern/thread: support thread_sleep without interlock
The thread_sleep function takes a spin lock as a parameter. This lock is used as an interlock allowing either the thread waking up or the thread being awaken to run. But when threads don't need a lock to provide that guarantee, the interlock is only overhead. This change makes thread_sleep assume disabling preemption is used as a synchronization mechanism when the interlock is NULL.
Diffstat (limited to 'kern/mutex.h')
0 files changed, 0 insertions, 0 deletions