Lines Matching defs:benaphore
167 // mutex benaphore.
189 // init the mutex benaphore
194 // init the queueing benaphore
307 // have acquired the queueing benaphore, but have not yet
323 // the data and acquiring the queuing benaphore.
351 // First step: acquire the queueing benaphore.
371 // Second step: acquire the mutex benaphore.
395 // Whatever happened, we have to release the queueing benaphore.
454 RWLocker::_AcquireBenaphore(Benaphore& benaphore, bigtime_t timeout)
457 if (atomic_add(&benaphore.counter, 1) > 0) {
458 error = acquire_sem_etc(benaphore.semaphore, 1, B_ABSOLUTE_TIMEOUT,
466 RWLocker::_ReleaseBenaphore(Benaphore& benaphore)
468 if (atomic_add(&benaphore.counter, -1) > 1)
469 release_sem(benaphore.semaphore);