Searched refs:mutex (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/core/jni/
H A Dandroid_bluetooth_ScoSocket.cpp52 * the Java object forces us to use a mutex in destoryNative().
75 /* shared native data - protected by mutex */
77 pthread_mutex_t mutex; member in struct:android::__anon23
121 pthread_mutex_init(&nat->mutex, NULL);
138 pthread_mutex_lock(&nat->mutex);
142 pthread_mutex_unlock(&nat->mutex);
143 pthread_mutex_destroy(&nat->mutex);
157 pthread_mutex_lock(&nat->mutex);
159 pthread_mutex_unlock(&nat->mutex);
166 pthread_mutex_unlock(&nat->mutex);
[all...]
/frameworks/base/include/utils/
H A Dthreads.h186 * Simple mutex class. The implementation is system-dependent.
188 * The mutex must be unlocked by the thread that locked it. They are not
203 // lock or unlock the mutex
210 // Manages the mutex automatically. It'll be locked when Autolock is
214 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); } argument
215 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLock.lock(); } argument
224 // A mutex cannot be copied
271 * Automatic mutex
317 wait(Mutex& mutex) argument
320 waitRelative(Mutex& mutex, nsecs_t reltime) argument
[all...]
/frameworks/base/libs/ui/
H A DFramebufferNativeWindow.cpp182 Mutex::Autolock _l(self->mutex);
187 self->mCondition.wait(self->mutex);
204 Mutex::Autolock _l(self->mutex);
208 self->mCondition.wait(self->mutex);
218 Mutex::Autolock _l(self->mutex);
232 Mutex::Autolock _l(self->mutex);
/frameworks/base/include/ui/
H A DFramebufferNativeWindow.h75 mutable Mutex mutex; member in class:android::FramebufferNativeWindow
/frameworks/base/libs/utils/
H A DThreads.cpp331 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
[all...]
/frameworks/base/libs/audioflinger/
H A DAudioPolicyService.cpp344 static bool tryLock(Mutex& mutex) argument
348 if (mutex.tryLock() == NO_ERROR) {
H A DAudioFlinger.cpp203 static bool tryLock(Mutex& mutex) argument
207 if (mutex.tryLock() == NO_ERROR) {
2232 LOGV("stepServer failed acquiring cblk mutex");

Completed in 735 milliseconds