Lines Matching refs:holder
163 lock->holder = thread; in recursive_lock_lock()
183 lock->holder = thread; in recursive_lock_trylock()
200 lock->holder = -1; in recursive_lock_unlock()
245 if (waiter == NULL || lock->holder > 0) in rw_lock_unblock()
258 lock->holder = get_thread_id(waiter->thread); in rw_lock_unblock()
293 lock->holder = -1; in rw_lock_init()
307 lock->holder = -1; in rw_lock_init_etc()
327 != lock->holder) { in rw_lock_destroy()
362 if (lock->holder == find_thread(NULL)) { in _rw_lock_read_lock()
392 if (lock->holder == find_thread(NULL)) { in _rw_lock_read_lock_with_timeout()
488 if (lock->holder == find_thread(NULL)) { in _rw_lock_read_unlock_threads_locked()
516 if (lock->holder == thread) { in rw_lock_write_lock()
526 lock->holder = thread; in rw_lock_write_lock()
538 lock->holder = thread; in rw_lock_write_lock()
557 if (find_thread(NULL) != lock->holder) { in _rw_lock_write_unlock_threads_locked()
569 lock->holder = -1; in _rw_lock_write_unlock_threads_locked()
605 lock->holder = -1; in mutex_init()
619 lock->holder = -1; in mutex_init_etc()
638 != lock->holder) { in mutex_destroy()
701 if (lock->holder < 0) { in _mutex_lock_threads_locked()
702 lock->holder = find_thread(NULL); in _mutex_lock_threads_locked()
704 } else if (lock->holder == find_thread(NULL)) { in _mutex_lock_threads_locked()
706 lock->holder); in _mutex_lock_threads_locked()
707 } else if (lock->holder == 0) in _mutex_lock_threads_locked()
740 lock->holder = get_thread_id(waiter.thread); in _mutex_lock_threads_locked()
759 if (find_thread(NULL) != lock->holder) { in _mutex_unlock_threads_locked()
762 find_thread(NULL), lock, lock->holder); in _mutex_unlock_threads_locked()
782 lock->holder = get_thread_id(waiter->thread); in _mutex_unlock_threads_locked()
788 lock->holder = -1; in _mutex_unlock_threads_locked()
811 if (lock->holder <= 0) { in mutex_trylock()
812 lock->holder = find_thread(NULL); in mutex_trylock()