Lines Matching refs:to

151 recursive_lock_switch_lock(recursive_lock* from, recursive_lock* to)
156 "disabled for locks %p, %p", from, to);
161 return recursive_lock_lock(to);
169 if (thread == RECURSIVE_LOCK_HOLDER(to)) {
170 to->recursion++;
175 status_t status = mutex_switch_lock(&from->lock, &to->lock);
185 to->holder = thread;
187 to->recursion++;
193 recursive_lock_switch_from_mutex(mutex* from, recursive_lock* to)
198 "disabled for locks %p, %p", from, to);
204 if (thread == RECURSIVE_LOCK_HOLDER(to)) {
205 to->recursion++;
210 status_t status = mutex_switch_lock(from, &to->lock);
215 to->holder = thread;
217 to->recursion++;
223 recursive_lock_switch_from_read_lock(rw_lock* from, recursive_lock* to)
228 "disabled for locks %p, %p", from, to);
234 if (thread != RECURSIVE_LOCK_HOLDER(to)) {
235 status_t status = mutex_switch_from_read_lock(from, &to->lock);
240 to->holder = thread;
246 to->recursion++;
523 // have to wait.
538 // we need to wait
582 // have to wait.
597 // we need to wait
627 // We failed to get the lock -- dequeue from waiter list.
647 // Decrement the count. ATM this is all we have to do. There's at least
650 // held) -- so our leaving doesn't make a difference to the ones behind us
704 // If we're already the lock holder, we just need to increment the owner
724 // We have to wait. If we're the first writer, note the current reader
778 // section yet, won't start to wait. Otherwise a writer overtaking
779 // such a reader will correctly start to wait, but the reader,
780 // seeing the writer count > 0, would also start to wait. We set
781 // pending_readers to the number of readers that are still expected
782 // to enter the critical section.
911 mutex_switch_lock(mutex* from, mutex* to)
916 "for locks %p, %p", from, to);
920 InterruptsSpinLocker locker(to->lock);
924 return mutex_lock_threads_locked(to, &locker);
940 mutex_switch_from_read_lock(rw_lock* from, mutex* to)
945 "for locks %p, %p", from, to);
949 InterruptsSpinLocker locker(to->lock);
953 return mutex_lock_threads_locked(to, &locker);
1028 panic("_mutex_unlock() failure: thread %" B_PRId32 " is trying to "
1043 // Already set the holder to the unblocked thread. Besides that this
1044 // actually reflects the current situation, setting it to -1 would
1139 // if we resume due to a timeout before our thread is set to NULL.
1164 // we need to fix the lock count
1227 " <mutex> - pointer to the mutex to print the info for.\n", 0);
1232 " <lock> - pointer to the rw lock to print the info for.\n", 0);
1237 " <lock> - pointer to the recursive lock to print the info for.\n",