Lines Matching refs:mutex
409 ALOG(LOG_WARN, "thread", "WARNING: bad result from unlocking mutex\n");
418 ALOG(LOG_WARN, "thread", "WARNING: bad result from try-locking mutex\n");
445 * As an optimization they require acquiring the external mutex before
466 // This mutex wouldn't be necessary if we required that the caller
467 // lock the external mutex before calling signal() and broadcast().
492 // Atomically release the external mutex and wait on the semaphore.
514 // internal mutex.
517 // can acquire the internal mutex. We want to do this in one step
518 // because it ensures that everybody is in the mutex FIFO before
524 // Grab the internal mutex.
550 // used so we don't have to lock external mutex on signal/broadcast
570 status_t Condition::wait(Mutex& mutex)
573 HANDLE hMutex = (HANDLE) mutex.mState;
578 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime)
581 HANDLE hMutex = (HANDLE) mutex.mState;
594 // Lock the internal mutex. This ensures that we don't clash with
607 // Release internal mutex.
616 * releasing the internal mutex. This ensures that all threads are woken.
622 // Lock the internal mutex. This keeps the guys we're waking up
652 // Release internal mutex.