diff options
author | Richard Braun <rbraun@sceen.net> | 2014-06-18 23:35:45 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2014-06-18 23:35:45 +0200 |
commit | c3c302a2041e05765d97b1c8d44735a56da0f1cd (patch) | |
tree | 86d79fba374c6a8e4638182124aac5fa260743d0 /kern/mutex.h | |
parent | f6dd434b4b37ca7bcabed3d219bcdf7cd6fce815 (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