/frameworks/av/libvideoeditor/osal/src/ |
H A D | M4OSA_Mutex.c | 19 * @note This file implements functions to manipulate mutex 33 /* Context for the mutex */ 36 M4OSA_UInt32 coreID; /* mutex context identifiant */ 37 pthread_mutex_t mutex; /* mutex */ member in struct:__anon84 45 * @brief This method creates a new mutex. 49 * will be sent back to any OSAL core mutex functions to allow 50 * retrieving data associated to the opened mutex. 51 * @param pContext:(OUT) Context of the created mutex 70 M4OSA_MUTEX, (M4OSA_Char*)"M4OSA_mutexOpen: mutex contex [all...] |
/frameworks/native/include/ui/ |
H A D | FramebufferNativeWindow.h | 84 mutable Mutex mutex; member in class:android::FramebufferNativeWindow
|
/frameworks/native/include/utils/ |
H A D | Condition.h | 39 * Condition variables are paired up with mutexes. Lock the mutex, 41 * or unlock the mutex and continue. All threads calling wait() must 42 * use the same mutex for a given Condition. 54 // Wait on the condition variable. Lock the mutex before calling. 55 status_t wait(Mutex& mutex); 57 status_t waitRelative(Mutex& mutex, nsecs_t reltime); 92 inline status_t Condition::wait(Mutex& mutex) { argument 93 return -pthread_cond_wait(&mCond, &mutex.mMutex); 95 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) { argument 100 return -pthread_cond_timedwait_relative_np(&mCond, &mutex [all...] |
H A D | Mutex.h | 37 * Simple mutex class. The implementation is system-dependent. 39 * The mutex must be unlocked by the thread that locked it. They are not 54 // lock or unlock the mutex 61 // Manages the mutex automatically. It'll be locked when Autolock is 65 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); } argument 66 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLock.lock(); } argument 75 // A mutex cannot be copied 126 * Automatic mutex [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | multithread.c | 40 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 D | reverb.c | 178 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 D | xaplay.c | 63 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 D | AudioResampler.cpp | 134 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; member in namespace:android 154 pthread_mutex_lock(&mutex); 182 pthread_mutex_unlock(&mutex); 237 pthread_mutex_lock(&mutex); 245 pthread_mutex_unlock(&mutex);
|
H A D | AudioPolicyService.cpp | 540 static bool tryLock(Mutex& mutex) argument 544 if (mutex.tryLock() == NO_ERROR) {
|
H A D | AudioFlinger.cpp | 367 static bool tryLock(Mutex& mutex) argument 371 if (mutex.tryLock() == NO_ERROR) { 1155 // do not lock the mutex in destructor 4240 // Client destructor must run with AudioFlinger mutex locked 4267 ALOGV("stepServer failed acquiring cblk mutex"); 4509 // FIXME When called by fast mixer, this takes a mutex with tryLock(). 4515 // discovers the mutex is locked, then has to wait for fast mixer to unlock. 4548 // Note that framesReady() takes a mutex on the control block using tryLock(). 7511 // mutex below, the call to checkPlaybackThread_l(io) below will detect it 8837 result.append("\t\tCould not lock Fx mutex [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestFeedback.cpp | 59 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable 66 pthread_mutex_lock(&mutex); 116 pthread_mutex_unlock(&mutex); 125 pthread_mutex_lock(&mutex); 170 pthread_mutex_unlock(&mutex);
|
H A D | slesTestDecodeAac.cpp | 135 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 D | slesTest_playMuteSolo.cpp | 58 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 D | slesTestLoopUri.cpp | 39 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 D | slesTestSlowDownUri.cpp | 41 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable 137 ok = pthread_mutex_lock(&mutex); 142 ok = pthread_mutex_unlock(&mutex); 341 pthread_mutex_lock(&mutex); 343 pthread_cond_wait(&cond, &mutex); 345 pthread_mutex_unlock(&mutex);
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraService.cpp | 450 static bool tryLock(Mutex& mutex) argument 454 if (mutex.tryLock() == NO_ERROR) {
|
/frameworks/wilhelm/tests/native-media/jni/ |
H A D | native-media-jni.c | 76 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);
|