Lines Matching refs:thread
19 #include <thread.h>
116 // variable's thread, so we must not be interrupted during it.
389 Thread* thread = atomic_pointer_get_and_set(&entry->fThread, (Thread*)NULL);
390 if (thread == NULL) {
407 SpinLocker schedulerLocker(thread->scheduler_lock);
410 if (lastWaitStatus == STATUS_WAITING && thread->state != B_THREAD_WAITING) {
411 // The thread is not in B_THREAD_WAITING state, so we must unblock it early,
413 thread_unblock_locked(thread, result);
417 // No matter what the thread is doing, as we were the ones to clear its
423 // If the thread was in B_THREAD_WAITING state, we unblock it after unsetting
427 thread_unblock_locked(thread, result);