Searched defs:mutex (Results 1 - 19 of 19) sorted by relevance

/frameworks/native/include/ui/
H A DFramebufferNativeWindow.h86 mutable Mutex mutex; member in class:android::FramebufferNativeWindow
/frameworks/base/libs/usb/tests/accessorytest/
H A Daudio.c47 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
58 pthread_mutex_lock(&mutex);
61 pthread_cond_wait(&empty_cond, &mutex);
71 pthread_mutex_unlock(&mutex);
77 pthread_mutex_lock(&mutex);
85 pthread_mutex_unlock(&mutex);
92 pthread_mutex_lock(&mutex);
95 pthread_cond_wait(&full_cond, &mutex);
105 pthread_mutex_unlock(&mutex);
111 pthread_mutex_lock(&mutex);
[all...]
H A Dhid.c37 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
84 pthread_mutex_lock(&mutex);
106 pthread_mutex_unlock(&mutex);
/frameworks/wilhelm/tests/sandbox/
H A Dmultithread.c40 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
44 //pthread_mutex_lock(&mutex);
45 //pthread_mutex_unlock(&mutex);
153 //pthread_mutex_lock(&mutex);
154 //pthread_mutex_unlock(&mutex);
H A Dreverb.c178 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
211 ok = pthread_mutex_lock(&mutex);
216 ok = pthread_mutex_unlock(&mutex);
612 pthread_mutex_lock(&mutex);
614 pthread_cond_wait(&cond, &mutex);
616 pthread_mutex_unlock(&mutex);
H A Dxaplay.c63 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
119 ok = pthread_mutex_lock(&mutex);
124 ok = pthread_mutex_unlock(&mutex);
579 pthread_mutex_lock(&mutex);
581 pthread_cond_wait(&cond, &mutex);
583 pthread_mutex_unlock(&mutex);
/frameworks/av/services/audioflinger/
H A DAudioResampler.cpp146 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; member in namespace:android
176 pthread_mutex_lock(&mutex);
212 pthread_mutex_unlock(&mutex);
286 pthread_mutex_lock(&mutex);
294 pthread_mutex_unlock(&mutex);
H A DAudioFlinger.cpp364 bool AudioFlinger::dumpTryLock(Mutex& mutex) argument
368 if (mutex.tryLock() == NO_ERROR) {
1221 // ThreadBase mutex and the locking order is ThreadBase::mLock then AudioFlinger::mClientLock.
2526 // mutex below, the call to checkPlaybackThread_l(io) below will detect it
/frameworks/wilhelm/tests/examples/
H A DslesTestFeedback.cpp62 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
72 pthread_mutex_lock(&mutex);
143 pthread_mutex_unlock(&mutex);
152 pthread_mutex_lock(&mutex);
222 pthread_mutex_unlock(&mutex);
H A DslesTestDecodeAac.cpp135 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
182 ok = pthread_mutex_lock(&mutex);
187 ok = pthread_mutex_unlock(&mutex);
241 // mutex on all global variables
321 // mutex on all global variables
759 pthread_mutex_lock(&mutex);
761 pthread_cond_wait(&cond, &mutex);
763 pthread_mutex_unlock(&mutex);
/frameworks/wilhelm/tests/listening/
H A DslesTest_playMuteSolo.cpp58 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
91 ok = pthread_mutex_lock(&mutex);
96 ok = pthread_mutex_unlock(&mutex);
313 pthread_mutex_lock(&mutex);
315 pthread_cond_wait(&cond, &mutex);
317 pthread_mutex_unlock(&mutex);
/frameworks/wilhelm/tests/mimeUri/
H A DslesTestLoopUri.cpp39 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
92 ok = pthread_mutex_lock(&mutex);
97 ok = pthread_mutex_unlock(&mutex);
241 pthread_mutex_lock(&mutex);
243 pthread_cond_wait(&cond, &mutex);
245 pthread_mutex_unlock(&mutex);
H A DslesTestSlowDownUri.cpp41 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
137 ok = pthread_mutex_lock(&mutex);
142 ok = pthread_mutex_unlock(&mutex);
343 pthread_mutex_lock(&mutex);
345 pthread_cond_wait(&cond, &mutex);
347 pthread_mutex_unlock(&mutex);
/frameworks/base/libs/hwui/renderthread/
H A DRenderProxy.cpp431 Mutex mutex; local
433 SignalingRenderTask syncTask(task, &mutex, &condition);
434 AutoMutex _lock(mutex);
436 condition.wait(mutex);
/frameworks/wilhelm/tests/native-media/jni/
H A Dnative-media-jni.c76 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
108 // note there is never any contention on this mutex unless a discontinuity request is active
109 ok = pthread_mutex_lock(&mutex);
219 ok = pthread_mutex_unlock(&mutex);
530 ok = pthread_mutex_lock(&mutex);
536 ok = pthread_cond_wait(&cond, &mutex);
539 ok = pthread_mutex_unlock(&mutex);
/frameworks/av/services/audiopolicy/
H A DAudioPolicyService.cpp269 static bool tryLock(Mutex& mutex) argument
273 if (mutex.tryLock() == NO_ERROR) {
/frameworks/av/services/soundtrigger/
H A DSoundTriggerHwService.cpp177 static bool tryLock(Mutex& mutex) argument
181 if (mutex.tryLock() == NO_ERROR) {
/frameworks/base/services/core/java/com/android/server/notification/
H A DManagedServices.java94 public ManagedServices(Context context, Handler handler, Object mutex, argument
97 mMutex = mutex;
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp777 // important: release the mutex here so the client can call back
842 // important: release the mutex here so the client can call back
933 // important: release the mutex here so the client can call back
1006 // important: release the mutex here so the client can call back
1596 static bool tryLock(Mutex& mutex) argument
1600 if (mutex.tryLock() == NO_ERROR) {

Completed in 284 milliseconds