Lines Matching refs:mutex
415 LOG(LOG_WARN, "thread", "WARNING: bad result from unlocking mutex\n");
424 LOG(LOG_WARN, "thread", "WARNING: bad result from try-locking mutex\n");
451 * As an optimization they require acquiring the external mutex before
472 // This mutex wouldn't be necessary if we required that the caller
473 // lock the external mutex before calling signal() and broadcast().
498 // Atomically release the external mutex and wait on the semaphore.
520 // internal mutex.
523 // can acquire the internal mutex. We want to do this in one step
524 // because it ensures that everybody is in the mutex FIFO before
530 // Grab the internal mutex.
556 // used so we don't have to lock external mutex on signal/broadcast
576 status_t Condition::wait(Mutex& mutex)
579 HANDLE hMutex = (HANDLE) mutex.mState;
584 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime)
587 HANDLE hMutex = (HANDLE) mutex.mState;
600 // Lock the internal mutex. This ensures that we don't clash with
613 // Release internal mutex.
622 * releasing the internal mutex. This ensures that all threads are woken.
628 // Lock the internal mutex. This keeps the guys we're waking up
658 // Release internal mutex.