Home | History | Annotate | Download | only in libutils

Lines Matching full:mutex

340  *      Mutex class
348 Mutex::Mutex()
358 Mutex::Mutex(const char* name)
369 Mutex::Mutex(int type, const char* name)
380 Mutex::~Mutex()
385 status_t Mutex::lock()
392 void Mutex::unlock()
395 ALOG(LOG_WARN, "thread", "WARNING: bad result from unlocking mutex\n");
398 status_t Mutex::tryLock()
404 ALOG(LOG_WARN, "thread", "WARNING: bad result from try-locking mutex\n");
429 * As an optimization they require acquiring the external mutex before
450 // This mutex wouldn't be necessary if we required that the caller
451 // lock the external mutex before calling signal() and broadcast().
476 // Atomically release the external mutex and wait on the semaphore.
498 // internal mutex.
501 // can acquire the internal mutex. We want to do this in one step
502 // because it ensures that everybody is in the mutex FIFO before
508 // Grab the internal mutex.
534 // used so we don't have to lock external mutex on signal/broadcast
554 status_t Condition::wait(Mutex& mutex)
557 HANDLE hMutex = (HANDLE) mutex.mState;
562 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime)
565 HANDLE hMutex = (HANDLE) mutex.mState;
578 // Lock the internal mutex. This ensures that we don't clash with
591 // Release internal mutex.
600 * releasing the internal mutex. This ensures that all threads are woken.
606 // Lock the internal mutex. This keeps the guys we're waking up
636 // Release internal mutex.
673 Mutex::Autolock _l(mLock);
759 Mutex::Autolock _l(self->mLock);
785 Mutex::Autolock _l(mLock);
791 Mutex::Autolock _l(mLock);
815 Mutex::Autolock _l(mLock);
833 Mutex::Autolock _l(mLock);
841 Mutex::Autolock _l(mLock);
856 Mutex::Autolock _l(mLock);