HelenOS sources

thread_wait_start  240 kernel/generic/include/proc/thread.h extern thread_termination_state_t thread_wait_start(void);
thread_wait_start  220 kernel/generic/src/synch/waitq.c 		bool terminating = (thread_wait_start() == THREAD_TERMINATING);
HelenOS homepage, sources at GitHub