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

/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::__anon26
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/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
442 wait(Mutex& mutex) argument
445 waitRelative(Mutex& mutex, nsecs_t reltime) argument
[all...]
/frameworks/base/libs/ui/
H A DFramebufferNativeWindow.cpp181 Mutex::Autolock _l(mutex);
190 Mutex::Autolock _l(self->mutex);
202 self->mCondition.wait(self->mutex);
218 Mutex::Autolock _l(self->mutex);
226 self->mCondition.wait(self->mutex);
238 Mutex::Autolock _l(self->mutex);
260 Mutex::Autolock _l(self->mutex);
/frameworks/base/include/ui/
H A DFramebufferNativeWindow.h78 mutable Mutex mutex; member in class:android::FramebufferNativeWindow
/frameworks/base/libs/utils/
H A DThreads.cpp415 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
[all...]
/frameworks/base/services/audioflinger/
H A DAudioPolicyService.cpp391 static bool tryLock(Mutex& mutex) argument
395 if (mutex.tryLock() == NO_ERROR) {
H A DAudioFlinger.cpp221 static bool tryLock(Mutex& mutex) argument
225 if (mutex.tryLock() == NO_ERROR) {
2854 LOGV("stepServer failed acquiring cblk mutex");
4694 // mutex below, the call to checkPlaybackThread_l(output) below will detect it
5838 result.append("\t\tCould not lock Fx mutex:\n");
6431 result.append("\tCould not lock mutex:\n");
/frameworks/base/services/camera/libcameraservice/
H A DCameraService.cpp1226 static bool tryLock(Mutex& mutex) argument
1230 if (mutex.tryLock() == NO_ERROR) {

Completed in 5352 milliseconds