/frameworks/native/include/ui/ |
FramebufferNativeWindow.h | 84 mutable Mutex mutex; member in class:android::FramebufferNativeWindow
|
/hardware/invensense/mlsdk/mllite/ |
mlstates.c | 58 HANDLE mutex; member in struct:state_callback_obj 71 return inv_create_mutex(&sStateChangeCallbacks.mutex); 77 result = inv_destroy_mutex(sStateChangeCallbacks.mutex); 181 result = inv_lock_mutex(sStateChangeCallbacks.mutex); 207 inv_unlock_mutex(sStateChangeCallbacks.mutex); 224 result = inv_lock_mutex(sStateChangeCallbacks.mutex); 243 inv_unlock_mutex(sStateChangeCallbacks.mutex); 252 result = inv_lock_mutex(sStateChangeCallbacks.mutex); 262 break; // Can't return, must release mutex 267 inv_unlock_mutex(sStateChangeCallbacks.mutex); [all...] |
/hardware/qcom/display/libgralloc/ |
gr.h | 69 pthread_mutex_t mutex; member in class:Locker 77 inline Locker() { pthread_mutex_init(&mutex, 0); } 78 inline ~Locker() { pthread_mutex_destroy(&mutex); } 79 inline void lock() { pthread_mutex_lock(&mutex); } 80 inline void unlock() { pthread_mutex_unlock(&mutex); }
|
/hardware/ti/omap4xxx/domx/mm_osal/src/ |
timm_osal_events.c | 69 pthread_mutex_t mutex; member in struct:__anon21877 98 if (SUCCESS != pthread_mutex_init(&(plEvent->mutex), NULL)) 100 TIMM_OSAL_Error("Event Create:Mutex Init failed !"); 108 pthread_mutex_destroy(&(plEvent->mutex)); 142 if (SUCCESS != pthread_mutex_lock(&(plEvent->mutex))) 144 TIMM_OSAL_Error("Event Delete: Mutex Lock failed !"); 154 if (SUCCESS != pthread_mutex_unlock(&(plEvent->mutex))) 156 TIMM_OSAL_Error("Event Delete: Mutex Unlock failed !"); 160 if (SUCCESS != pthread_mutex_destroy(&(plEvent->mutex))) 162 TIMM_OSAL_Error("Event Delete: Mutex Destory failed !") [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
SynchronizedBiMapTest.java | 41 new TestBiMap<K, V>(HashBiMap.<K, V>create(), mutex); 42 BiMap<K, V> outer = Synchronized.biMap(inner, mutex); 49 public TestBiMap(BiMap<K, V> delegate, Object mutex) { 50 super(delegate, mutex); 56 assertTrue(Thread.holdsLock(mutex)); 62 assertTrue(Thread.holdsLock(mutex)); 67 assertTrue(Thread.holdsLock(mutex)); 83 assertSame(mutex, ((SynchronizedBiMap<?, ?>) inverse).mutex); 90 assertSame(mutex, ((SynchronizedSet<?>) values).mutex) 94 public final Object mutex = new Integer(1); \/\/ something Serializable field in class:SynchronizedBiMapTest.AbstractBiMapTests [all...] |
SynchronizedSetTest.java | 36 public final Object mutex = new Integer(1); // something Serializable field in class:SynchronizedSetTest 39 TestSet<E> inner = new TestSet<E>(new HashSet<E>(), mutex); 40 Set<E> outer = Synchronized.set(inner, inner.mutex); 54 public final Object mutex; field in class:SynchronizedSetTest.TestSet 56 public TestSet(Set<E> delegate, Object mutex) { 57 checkNotNull(mutex); 59 this.mutex = mutex; 67 assertTrue(Thread.holdsLock(mutex)); 72 assertTrue(Thread.holdsLock(mutex)); [all...] |
/external/kernel-headers/original/linux/ |
mutex.h | 23 * - only one task can hold the mutex at a time 24 * - only the owner can unlock the mutex 27 * - a mutex object must be initialized via the API 28 * - a mutex object must not be initialized via memset or copying 29 * - task may not exit with mutex held 35 * enabled. Furthermore, besides enforcing the above rules, the mutex 47 struct mutex { struct 63 * This is the control structure for tasks blocked on mutex, 70 struct mutex *lock; 76 # include <linux/mutex-debug.h [all...] |
/external/llvm/include/llvm/Support/ |
RWMutex.h | 84 /// SmartMutex - An R/W mutex with a compile time constant parameter that 85 /// indicates whether this mutex should become a no-op when we're not 145 SmartRWMutex<mt_only>& mutex; member in struct:llvm::sys::SmartScopedReader 147 explicit SmartScopedReader(SmartRWMutex<mt_only>& m) : mutex(m) { 148 mutex.reader_acquire(); 152 mutex.reader_release(); 160 SmartRWMutex<mt_only>& mutex; member in struct:llvm::sys::SmartScopedWriter 162 explicit SmartScopedWriter(SmartRWMutex<mt_only>& m) : mutex(m) { 163 mutex.writer_acquire(); 167 mutex.writer_release() [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/aalib/ |
SDL_aavideo.h | 46 SDL_mutex *mutex; member in struct:SDL_PrivateVideoData 61 #define AA_mutex (this->hidden->mutex)
|
/external/qemu/distrib/sdl-1.2.15/src/video/caca/ |
SDL_cacavideo.h | 51 SDL_mutex *mutex; member in struct:SDL_PrivateVideoData 73 #define Caca_mutex (this->hidden->mutex)
|
/external/skia/include/core/ |
SkPixelRef.h | 52 explicit SkPixelRef(SkBaseMutex* mutex = NULL); 182 acquire a mutex for thread safety, so this method need not do that. 186 already acquire a mutex for thread safety, so this method need not do 205 /** Return the mutex associated with this pixelref. This value is assigned 208 SkBaseMutex* mutex() const { return fMutex; } function in class:SkPixelRef 215 // the need to grab the mutex and call onLockPixels/onUnlockPixels. 239 void setMutex(SkBaseMutex* mutex);
|
/external/skia/legacy/include/core/ |
SkPixelRef.h | 55 explicit SkPixelRef(SkBaseMutex* mutex = NULL); 182 acquire a mutex for thread safety, so this method need not do that. 186 already acquire a mutex for thread safety, so this method need not do 202 /** Return the mutex associated with this pixelref. This value is assigned 205 SkBaseMutex* mutex() const { return fMutex; } function in class:SkPixelRef 210 // the need to grab the mutex and call onLockPixels/onUnlockPixels. 214 // only call from constructor. Specify a (possibly) different mutex, or 216 // The default logic is to provide a mutex, but possibly one that is 218 // specific, and it is legal for each instance to have its own mutex. 240 void setMutex(SkBaseMutex* mutex); [all...] |
/external/stlport/test/unit/ |
allocator_test.cpp | 90 pthread_mutex_init(&mutex, 0); 103 pthread_mutex_lock(&mutex); 116 pthread_cond_wait(&condition, &mutex); 125 pthread_mutex_unlock(&mutex); 136 pthread_mutex_t mutex; member in class:SharedDatas
|
/external/webkit/Source/WebCore/bindings/generic/ |
ActiveDOMCallback.cpp | 104 Mutex& mutex() { return m_mutex; } function in class:WebCore::ActiveDOMObjectCallbackImpl 107 Mutex m_mutex; 117 MutexLocker locker(implOwnPtr->mutex());
|
/hardware/samsung_slsi/exynos5/libexynosutils/ |
ExynosMutex.cpp | 71 androidMutexType = Mutex::PRIVATE; 74 androidMutexType = Mutex::SHARED; 81 m_mutex = new Mutex(androidMutexType, name); 83 ALOGE("%s::Mutex create fail", __func__); 103 delete ((Mutex *)m_mutex); 125 if (((Mutex *)m_mutex)->lock() != 0) { 148 ((Mutex *)m_mutex)->unlock(); 170 ret = ((Mutex *)m_mutex)->tryLock(); 188 ExynosMutex *mutex = new ExynosMutex(); local 190 if (mutex->create(type, name) == false) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/src/ |
mutex.cpp | 1 //===------------------------- mutex.cpp ----------------------------------===// 11 #include "mutex" 22 mutex::~mutex() 28 mutex::lock() 32 __throw_system_error(ec, "mutex lock failed"); 36 mutex::try_lock() _NOEXCEPT 42 mutex::unlock() _NOEXCEPT 115 lock_guard<mutex> _(__m_); 121 unique_lock<mutex> lk(__m_) [all...] |
/ndk/tests/device/test-gnustl-full/unit/ |
allocator_test.cpp | 90 pthread_mutex_init(&mutex, 0); 103 pthread_mutex_lock(&mutex); 116 pthread_cond_wait(&condition, &mutex); 125 pthread_mutex_unlock(&mutex); 136 pthread_mutex_t mutex; member in class:SharedDatas
|
/ndk/tests/device/test-stlport/unit/ |
allocator_test.cpp | 90 pthread_mutex_init(&mutex, 0); 103 pthread_mutex_lock(&mutex); 116 pthread_cond_wait(&condition, &mutex); 125 pthread_mutex_unlock(&mutex); 136 pthread_mutex_t mutex; member in class:SharedDatas
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_stoptheworld_linux.cc | 180 // The tracer thread waits on this mutex while the parent finished its 182 BlockingMutex mutex; member in struct:__sanitizer::TracerThreadArgument 205 tracer_thread_argument->mutex.Lock(); 206 tracer_thread_argument->mutex.Unlock(); 284 tracer_thread_argument.mutex.Lock(); 296 tracer_thread_argument.mutex.Unlock(); 304 tracer_thread_argument.mutex.Unlock();
|
/external/icu4c/i18n/ |
digitlst.cpp | 34 #include "mutex.h" 121 Mutex mutex; local 418 Mutex mutex; 482 Mutex mutex;
|
/external/qemu/distrib/sdl-1.2.15/src/thread/ |
SDL_thread.c | 60 SDL_mutex *mutex; local 62 mutex = thread_lock; 64 if ( mutex != NULL ) { 65 SDL_DestroyMutex(mutex);
|
/frameworks/av/services/audioflinger/ |
AudioResampler.cpp | 132 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; member in namespace:android 152 pthread_mutex_lock(&mutex); 180 pthread_mutex_unlock(&mutex); 233 pthread_mutex_lock(&mutex); 241 pthread_mutex_unlock(&mutex);
|
/frameworks/wilhelm/tests/mimeUri/ |
slesTestLoopUri.cpp | 37 // Mutex and condition shared with main program to protect prefetch_status 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);
|
/frameworks/wilhelm/tests/sandbox/ |
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);
|
/hardware/samsung_slsi/exynos5/mobicore/daemon/Daemon/Device/ |
MobiCoreDevice.cpp | 143 static CMutex mutex; local 149 mutex.lock(); 160 mutex.unlock();
|