diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-03 14:20:13 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-03 14:20:13 +0200 |
commit | 1b902346ce502870329bda19d92d317a21cab56e (patch) | |
tree | 45f7d5702e0320047966a1fdd903917730f25627 /kern/thread.h | |
parent | 77bb91faa0059b157220ef2e1732bdf89618a375 (diff) |
kern/thread: improve thread_wakeup robustness
Diffstat (limited to 'kern/thread.h')
-rw-r--r-- | kern/thread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/thread.h b/kern/thread.h index e348fe39..144735d5 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -219,7 +219,8 @@ void thread_sleep(struct spinlock *interlock, const void *wchan_addr, /* * Schedule a thread for execution on a processor. * - * No action is performed if the target thread is already in the running state. + * No action is performed if the target thread is NULL, the calling thread, + * or already in the running state. */ void thread_wakeup(struct thread *thread); |