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

/frameworks/base/include/utils/
H A Dthreads.h204 * Simple mutex class. The implementation is system-dependent.
206 * The mutex must be unlocked by the thread that locked it. They are not
221 // lock or unlock the mutex
228 // Manages the mutex automatically. It'll be locked when Autolock is
232 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); } argument
233 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLock.lock(); } argument
242 // A mutex cannot be copied
289 * Automatic mutex
352 wait(Mutex& mutex) argument
355 waitRelative(Mutex& mutex, nsecs_t reltime) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_bluetooth_ScoSocket.cpp69 * the Java object forces us to use a mutex in destoryNative().
109 /* shared native data - protected by mutex */
111 pthread_mutex_t mutex; member in struct:android::__anon24
291 pthread_mutex_init(&nat->mutex, NULL);
308 pthread_mutex_lock(&nat->mutex);
312 pthread_mutex_unlock(&nat->mutex);
313 pthread_mutex_destroy(&nat->mutex);
327 pthread_mutex_lock(&nat->mutex);
329 pthread_mutex_unlock(&nat->mutex);
336 pthread_mutex_unlock(&nat->mutex);
[all...]
/frameworks/base/libs/ui/
H A DFramebufferNativeWindow.cpp181 Mutex::Autolock _l(self->mutex);
186 self->mCondition.wait(self->mutex);
203 Mutex::Autolock _l(self->mutex);
207 self->mCondition.wait(self->mutex);
217 Mutex::Autolock _l(self->mutex);
231 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.cpp385 LOG(LOG_WARN, "thread", "WARNING: bad result from unlocking mutex\n");
394 LOG(LOG_WARN, "thread", "WARNING: bad result from try-locking mutex\n");
421 * As an optimization they require acquiring the external mutex before
442 // This mutex wouldn't be necessary if we required that the caller
443 // lock the external mutex before calling signal() and broadcast().
468 // Atomically release the external mutex and wait on the semaphore.
490 // internal mutex.
493 // can acquire the internal mutex. We want to do this in one step
494 // because it ensures that everybody is in the mutex FIFO before
500 // Grab the internal mutex
[all...]
/frameworks/base/camera/libcameraservice/
H A DCameraService.cpp1298 static bool tryLock(Mutex& mutex) argument
1302 if (mutex.tryLock() == NO_ERROR) {
/frameworks/base/libs/audioflinger/
H A DAudioPolicyService.cpp346 static bool tryLock(Mutex& mutex) argument
350 if (mutex.tryLock() == NO_ERROR) {
H A DAudioFlinger.cpp214 static bool tryLock(Mutex& mutex) argument
218 if (mutex.tryLock() == NO_ERROR) {
2399 LOGV("stepServer failed acquiring cblk mutex");

Completed in 183 milliseconds