Lines Matching refs:thread
52 #include <kern/thread.h>
104 thread_t thread,
301 thread_t thread,
316 if (thread != THREAD_NULL) {
321 thread,
377 * If the specified thread is blocked on the semaphore, it is
378 * woken up. If a NULL thread was supplied, then any one
379 * thread is woken up. Otherwise the caller gets KERN_NOT_WAITING
385 thread_t thread)
393 thread,
410 thread_t thread;
415 * select any one thread that is already waiting, but not to
419 thread = port_name_to_thread(thread_name);
420 if (thread == THREAD_NULL)
423 thread = THREAD_NULL;
428 thread,
432 if (thread != THREAD_NULL) {
433 thread_deallocate(thread);
447 * this call found a thread waiting or not. The internal
603 * negative after the decrement, the calling thread blocks