/external/valgrind/main/drd/tests/ |
hold_lock.c | 28 pthread_mutex_t mutex; local 45 fprintf(stderr, "Locking mutex ...\n"); 49 pthread_mutex_init(&mutex, &mutexattr); 51 pthread_mutex_lock(&mutex); 53 pthread_mutex_lock(&mutex); 54 pthread_mutex_unlock(&mutex); 55 pthread_mutex_unlock(&mutex); 56 pthread_mutex_destroy(&mutex);
|
free_is_write.c | 16 // 'mutex' protects 'count'. 17 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable 32 pthread_mutex_lock(&mutex); 35 pthread_mutex_unlock(&mutex); 51 pthread_mutex_lock(&mutex); 52 while (count < THREAD_COUNT && pthread_cond_wait(&cond, &mutex) == 0) 54 pthread_mutex_unlock(&mutex);
|
/bionic/libc/kernel/common/linux/ |
mutex.h | 27 struct mutex { struct 40 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0) 41 #define mutex_destroy(mutex) do { } while (0) 45 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
|
/development/ndk/platforms/android-3/include/linux/ |
mutex.h | 22 struct mutex { struct 35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0) 36 #define mutex_destroy(mutex) do { } while (0) 42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
|
/external/protobuf/gtest/test/ |
gtest-port_test.cc | 87 pthread_mutex_t* mutex = reinterpret_cast<pthread_mutex_t*>(data); local 88 pthread_mutex_lock(mutex); 89 pthread_mutex_unlock(mutex); 95 pthread_mutex_t mutex; local 99 // TODO(vladl@google.com): turn mutex into internal::Mutex for automatic 101 pthread_mutex_init(&mutex, NULL); 102 pthread_mutex_lock(&mutex); 106 const int status = pthread_create(&thread_id, &attr, &ThreadFunc, &mutex); 110 pthread_mutex_unlock(&mutex); [all...] |
/external/qemu/distrib/sdl-1.2.15/src/thread/pthread/ |
SDL_sysmutex.c | 43 SDL_mutex *mutex; local 47 mutex = (SDL_mutex *)SDL_calloc(1, sizeof(*mutex)); 48 if ( mutex ) { 57 if ( pthread_mutex_init(&mutex->id, &attr) != 0 ) { 59 SDL_free(mutex); 60 mutex = NULL; 65 return(mutex); 68 void SDL_DestroyMutex(SDL_mutex *mutex) 70 if ( mutex ) { [all...] |
/external/qemu/distrib/sdl-1.2.15/src/thread/riscos/ |
SDL_sysmutex.c | 44 SDL_mutex *mutex; local 48 mutex = (SDL_mutex *)SDL_calloc(1, sizeof(*mutex)); 49 if ( mutex ) { 56 if ( pthread_mutex_init(&mutex->id, &attr) != 0 ) { 58 SDL_free(mutex); 59 mutex = NULL; 64 return(mutex); 67 void SDL_DestroyMutex(SDL_mutex *mutex) 69 if ( mutex ) { [all...] |
/external/qemu/distrib/sdl-1.2.15/src/thread/symbian/ |
SDL_sysmutex.cpp | 35 /* Mutex functions using the Win32 API */ 72 /* Create a mutex */ 80 SDL_SetError("Couldn't create mutex"); 82 SDL_mutex* mutex = new /*(ELeave)*/ SDL_mutex; local 83 mutex->handle = rmutex.Handle(); 84 EpocSdlEnv::AppendCleanupItem(TSdlCleanupItem(DeleteMutex, mutex)); 85 return(mutex); 88 /* Free the mutex */ 89 void SDL_DestroyMutex(SDL_mutex *mutex) 91 if ( mutex ) [all...] |
/external/qemu/distrib/sdl-1.2.15/test/ |
testlock.c | 2 /* Test the thread and mutex locking functions 13 static SDL_mutex *mutex = NULL; variable 44 SDL_DestroyMutex(mutex); 53 if ( SDL_mutexP(mutex) < 0 ) { 54 fprintf(stderr, "Couldn't lock mutex: %s", SDL_GetError()); 60 if ( SDL_mutexV(mutex) < 0 ) { 61 fprintf(stderr, "Couldn't unlock mutex: %s", SDL_GetError()); 86 if ( (mutex=SDL_CreateMutex()) == NULL ) { 87 fprintf(stderr, "Couldn't create mutex: %s\n", SDL_GetError());
|
/external/v8/test/cctest/ |
test-platform-linux.cc | 25 static void LoopIncrement(Mutex* mutex, int rem) { 30 CHECK_EQ(0, mutex->Lock()); 32 CHECK_EQ(0, mutex->Unlock()); 36 CHECK_EQ(0, mutex->Lock()); 41 CHECK_EQ(0, mutex->Unlock()); 48 LoopIncrement(static_cast<Mutex*>(arg), 0); 57 Mutex* mutex = OS::CreateMutex(); local 61 mutex); [all...] |
test-platform-nullos.cc | 25 static void LoopIncrement(Mutex* mutex, int rem) { 30 CHECK_EQ(0, mutex->Lock()); 32 CHECK_EQ(0, mutex->Unlock()); 36 CHECK_EQ(0, mutex->Lock()); 41 CHECK_EQ(0, mutex->Unlock()); 48 LoopIncrement(static_cast<Mutex*>(arg), 0); 57 Mutex* mutex = OS::CreateMutex(); local 61 mutex); [all...] |
/external/valgrind/main/drd/ |
drd_clientreq.c | 383 const Addr mutex = arg[2]; local 385 DRD_(mutex_unlock)(mutex, mutex_type); 386 DRD_(cond_pre_wait)(cond, mutex); 394 const Addr mutex = arg[2]; local 397 DRD_(mutex_post_lock)(mutex, took_lock, True);
|
/external/webrtc/src/system_wrappers/source/ |
event_posix.h | 53 pthread_mutex_t mutex; member in class:webrtc::EventPosix
|
/frameworks/av/libvideoeditor/osal/src/ |
M4OSA_Mutex.c | 18 * @brief Mutex for Android 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:__anon18770 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 [all...] |
/hardware/libhardware/modules/gralloc/ |
gr.h | 50 pthread_mutex_t mutex; member in class:Locker 58 inline Locker() { pthread_mutex_init(&mutex, 0); } 59 inline ~Locker() { pthread_mutex_destroy(&mutex); } 60 inline void lock() { pthread_mutex_lock(&mutex); } 61 inline void unlock() { pthread_mutex_unlock(&mutex); }
|
/hardware/msm7k/libgralloc/ |
gr.h | 50 pthread_mutex_t mutex; member in class:Locker 58 inline Locker() { pthread_mutex_init(&mutex, 0); } 59 inline ~Locker() { pthread_mutex_destroy(&mutex); } 60 inline void lock() { pthread_mutex_lock(&mutex); } 61 inline void unlock() { pthread_mutex_unlock(&mutex); }
|
/hardware/msm7k/libgralloc-qsd8k/ |
gr.h | 49 pthread_mutex_t mutex; member in class:Locker 57 inline Locker() { pthread_mutex_init(&mutex, 0); } 58 inline ~Locker() { pthread_mutex_destroy(&mutex); } 59 inline void lock() { pthread_mutex_lock(&mutex); } 60 inline void unlock() { pthread_mutex_unlock(&mutex); }
|
/hardware/qcom/media/mm-video/vidc/vdec/inc/ |
message_queue.h | 53 pthread_mutex_t mutex; member in struct:video_queue_context
|
/hardware/qcom/media/mm-video/vidc/venc/inc/ |
queue.h | 53 pthread_mutex_t mutex; member in struct:video_queue_context
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/ |
mutex.h | 22 struct mutex { struct 35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0) 36 #define mutex_destroy(mutex) do { } while (0) 42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/ |
mutex.h | 22 struct mutex { struct 35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0) 36 #define mutex_destroy(mutex) do { } while (0) 42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
|
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/linux/ |
mutex.h | 22 struct mutex { struct 35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0) 36 #define mutex_destroy(mutex) do { } while (0) 42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/linux/ |
mutex.h | 22 struct mutex { struct 35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0) 36 #define mutex_destroy(mutex) do { } while (0) 42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
|
/prebuilts/ndk/4/platforms/android-8/arch-arm/usr/include/linux/ |
mutex.h | 22 struct mutex { struct 35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0) 36 #define mutex_destroy(mutex) do { } while (0) 42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/linux/ |
mutex.h | 22 struct mutex { struct 35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0) 36 #define mutex_destroy(mutex) do { } while (0) 42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
|