Lines Matching refs:wait_semaphore
116 semaphore_t wait_semaphore,
612 semaphore_t wait_semaphore,
623 semaphore_lock(wait_semaphore);
625 if (!wait_semaphore->active) {
627 } else if (wait_semaphore->count > 0) {
628 wait_semaphore->count--;
635 wait_semaphore->count = -1; /* we don't keep an actual count */
638 &wait_semaphore->wait_queue,
644 semaphore_unlock(wait_semaphore);
648 * wait_semaphore is unlocked so we are free to go ahead and
706 self->sth_waitsemaphore = wait_semaphore;
901 semaphore_t wait_semaphore,
904 if (wait_semaphore == SEMAPHORE_NULL)
907 return(semaphore_wait_internal(wait_semaphore,
932 semaphore_t wait_semaphore;
938 kr = port_name_to_semaphore(wait_name, &wait_semaphore);
940 kr = semaphore_wait_internal(wait_semaphore,
944 semaphore_dereference(wait_semaphore);
963 semaphore_t wait_semaphore,
970 if (wait_semaphore == SEMAPHORE_NULL)
981 return(semaphore_wait_internal(wait_semaphore,
1008 semaphore_t wait_semaphore;
1020 kr = port_name_to_semaphore(wait_name, &wait_semaphore);
1030 kr = semaphore_wait_internal(wait_semaphore,
1034 semaphore_dereference(wait_semaphore);