• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/kern/

Lines Matching defs:thread

49 #include <kern/thread.h>
242 * The thread currently holding the ulock is revoked of its
315 * Block the current thread if the lock is already held.
341 * Check to see why thread was woken up. In all cases, we
414 * whether it already holds the lock or another thread does.
483 lock_make_unstable (ulock_t ulock, thread_t thread)
497 if (ulock->holder != thread) {
516 ulock_release_internal (ulock_t ulock, thread_t thread)
531 if (ulock->holder != thread) {
538 * try to transfer the lock ownership to a waiting thread
552 /* wait_queue now unlocked, thread locked */
557 * locking/race problem. To keep the thread from
559 * assignment) we need to keep the thread locked
570 * from the current thread to the acquisition thread.
623 * If the accepting thread (the receiver) is already waiting
624 * to accept the lock from the handoff thread (the sender),
630 thread_t thread;
638 thread = wait_queue_wakeup64_identity_locked(
643 /* wait queue unlocked, thread locked */
648 if (thread != THREAD_NULL) {
651 * locking/race problem. To keep the thread from
653 * assignment) we need to keep the thread locked
655 * macros take a thread mutex lock.
660 thread_unlock(thread);
664 ulock_ownership_set(ulock, thread);
671 * OOPS. The accepting thread must have been aborted.
675 * the next accept thread (that's the way it is
683 * Indicate that there is a hand-off thread waiting, and then wait
684 * for an accepting thread.
696 * If the thread was woken-up via some action other than
745 * If there is another accepting thread that beat us, just
759 * If the handoff thread (the sender) is already waiting to
760 * hand-off the lock to the accepting thread (the receiver),
776 * Holder thread was still waiting to give it
805 * If the thread was woken-up via some action other than
867 thread_t thread)
871 while (!queue_empty(&thread->held_ulocks)) {
872 ulock = (ulock_t)queue_first(&thread->held_ulocks);
873 lock_make_unstable(ulock, thread);
874 ulock_release_internal(ulock, thread);