Lines Matching refs:holder
54 as spinlock as that could be expensive in userland (due to spinlock holder
149 lock->holder = thread;
169 lock->holder = thread;
182 panic("recursive_lock %p unlocked by non-holder thread!\n", lock);
186 lock->holder = -1;
231 if (waiter == NULL || lock->holder > 0)
244 lock->holder = get_thread_id(waiter->thread);
279 lock->holder = -1;
293 lock->holder = -1;
313 != lock->holder) {
348 if (lock->holder == find_thread(NULL)) {
378 if (lock->holder == find_thread(NULL)) {
474 if (lock->holder == find_thread(NULL)) {
499 // If we're already the lock holder, we just need to increment the owner
502 if (lock->holder == thread) {
512 lock->holder = thread;
524 lock->holder = thread;
543 if (find_thread(NULL) != lock->holder) {
555 lock->holder = -1;
591 lock->holder = -1;
605 lock->holder = -1;
624 != lock->holder) {
687 if (lock->holder < 0) {
688 lock->holder = find_thread(NULL);
690 } else if (lock->holder == find_thread(NULL)) {
692 lock->holder);
693 } else if (lock->holder == 0)
726 lock->holder = get_thread_id(waiter.thread);
745 if (find_thread(NULL) != lock->holder) {
747 "release mutex %p (current holder %" B_PRId32 ")\n",
748 find_thread(NULL), lock, lock->holder);
764 // Already set the holder to the unblocked thread. Besides that this
768 lock->holder = get_thread_id(waiter->thread);
774 lock->holder = -1;
796 if (lock->holder <= 0) {
797 lock->holder = find_thread(NULL);