Lines Matching refs:THREAD_NULL
330 ull->ull_owner = THREAD_NULL; in ull_alloc()
342 assert(ull->ull_owner == THREAD_NULL); in ull_free()
484 if (*owner == THREAD_NULL) { in ulock_resolve_owner()
523 thread_t owner_thread = THREAD_NULL; in sys_ulock_wait2()
524 thread_t old_owner = THREAD_NULL; in sys_ulock_wait2()
682 if (owner_thread == THREAD_NULL) { in sys_ulock_wait2()
711 ull->ull_owner = THREAD_NULL; in sys_ulock_wait2()
713 if (owner_thread != THREAD_NULL) { in sys_ulock_wait2()
767 if (set_owner && owner_thread != THREAD_NULL) { in sys_ulock_wait2()
770 assert(owner_thread == THREAD_NULL); in sys_ulock_wait2()
814 thread_t old_lingering_owner = THREAD_NULL; in ulock_wait_cleanup()
824 ull->ull_owner = THREAD_NULL; in ulock_wait_cleanup()
835 if (owner_thread != THREAD_NULL) { in ulock_wait_cleanup()
839 if (old_owner != THREAD_NULL) { in ulock_wait_cleanup()
843 if (old_lingering_owner != THREAD_NULL) { in ulock_wait_cleanup()
915 thread_t wake_thread = THREAD_NULL; in ulock_wake()
984 if (wake_thread == THREAD_NULL) { in ulock_wake()
991 thread_t new_owner = THREAD_NULL; in ulock_wake()
993 thread_t cleanup_thread = THREAD_NULL; in ulock_wake()
1019 assert(ull->ull_owner == THREAD_NULL); in ulock_wake()
1068 if (cleanup_thread != THREAD_NULL) { in ulock_wake()
1073 if (wake_thread != THREAD_NULL) { in ulock_wake()