Lines Matching refs:mutex
331 LOG(LOG_WARN, "thread", "WARNING: bad result from unlocking mutex\n");
340 LOG(LOG_WARN, "thread", "WARNING: bad result from try-locking mutex\n");
367 * As an optimization they require acquiring the external mutex before
388 // This mutex wouldn't be necessary if we required that the caller
389 // lock the external mutex before calling signal() and broadcast().
414 // Atomically release the external mutex and wait on the semaphore.
436 // internal mutex.
439 // can acquire the internal mutex. We want to do this in one step
440 // because it ensures that everybody is in the mutex FIFO before
446 // Grab the internal mutex.
472 // used so we don't have to lock external mutex on signal/broadcast
492 status_t Condition::wait(Mutex& mutex)
495 HANDLE hMutex = (HANDLE) mutex.mState;
500 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime)
503 HANDLE hMutex = (HANDLE) mutex.mState;
516 // Lock the internal mutex. This ensures that we don't clash with
529 // Release internal mutex.
538 * releasing the internal mutex. This ensures that all threads are woken.
544 // Lock the internal mutex. This keeps the guys we're waking up
574 // Release internal mutex.