/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/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:__anon79 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/libs/ui/ |
H A D | FramebufferNativeWindow.cpp | 205 Mutex::Autolock _l(mutex); 214 Mutex::Autolock _l(self->mutex); 223 self->mCondition.wait(self->mutex); 238 Mutex::Autolock _l(self->mutex); 244 self->mCondition.wait(self->mutex); 254 Mutex::Autolock _l(self->mutex); 270 Mutex::Autolock _l(self->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/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/native/include/ui/ |
H A D | FramebufferNativeWindow.h | 80 mutable Mutex mutex; member in class:android::FramebufferNativeWindow
|
/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);
|
/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/sandbox/ |
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 | 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 | 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/native/libs/utils/ |
H A D | Threads.cpp | 435 ALOG(LOG_WARN, "thread", "WARNING: bad result from unlocking mutex\n"); 444 ALOG(LOG_WARN, "thread", "WARNING: bad result from try-locking mutex\n"); 471 * As an optimization they require acquiring the external mutex before 492 // This mutex wouldn't be necessary if we required that the caller 493 // lock the external mutex before calling signal() and broadcast(). 518 // Atomically release the external mutex and wait on the semaphore. 540 // internal mutex. 543 // can acquire the internal mutex. We want to do this in one step 544 // because it ensures that everybody is in the mutex FIFO before 550 // Grab the internal mutex [all...] |
/frameworks/wilhelm/src/ |
H A D | Android.mk | 48 # enable mutex deadlock detection 50 # or -UUSE_DEBUG for no mutex deadlock detection
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraService.cpp | 1282 static bool tryLock(Mutex& mutex) argument 1286 if (mutex.tryLock() == NO_ERROR) {
|
/frameworks/av/services/audioflinger/ |
H A D | AudioPolicyService.cpp | 530 static bool tryLock(Mutex& mutex) argument 534 if (mutex.tryLock() == NO_ERROR) {
|
H A D | AudioFlinger.cpp | 364 static bool tryLock(Mutex& mutex) argument 368 if (mutex.tryLock() == NO_ERROR) { 1144 // do not lock the mutex in destructor 4197 // Client destructor must run with AudioFlinger mutex locked 4224 ALOGV("stepServer failed acquiring cblk mutex"); 4471 // FIXME When called by fast mixer, this takes a mutex with tryLock(). 4477 // discovers the mutex is locked, then has to wait for fast mixer to unlock. 4512 // Note that framesReady() takes a mutex on the control block using tryLock(). 7358 // mutex below, the call to checkPlaybackThread_l(io) below will detect it 8664 result.append("\t\tCould not lock Fx mutex [all...] |
/frameworks/compile/mclinker/utils/gtest/include/ |
H A D | gtest.h | 2247 // MutexBase and Mutex implement mutex on pthreads-based platforms. They 2250 // Mutex mutex; 2252 // MutexLock lock(&mutex); // Acquires the mutex and releases it at the end 2257 // the following to define a static mutex: 2261 // You can forward declare a static mutex like this: 2265 // To create a dynamic mutex, just define an object of type Mutex. 2268 // Acquires this mutex. 2274 // Releases this mutex. 2278 // mutex whe 2329 GTestMutexLock(MutexBase* mutex) argument [all...] |