HomeSort by relevance Sort by last modified time
    Searched defs:mutex (Results 1 - 25 of 84) sorted by null

1 2 3 4

  /external/v8/test/cctest/
test-lock.cc 18 Mutex* mutex = OS::CreateMutex(); local
19 CHECK_EQ(0, mutex->Lock()); // acquire the lock with the right token
20 CHECK_EQ(0, mutex->Unlock()); // can unlock with the right token
21 delete mutex;
26 Mutex* mutex = OS::CreateMutex(); local
27 CHECK_EQ(0, mutex->Lock());
28 CHECK_EQ(0, mutex->Unlock());
29 delete mutex;
34 Mutex* mutex = OS::CreateMutex(); local
    [all...]
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/qemu/distrib/sdl-1.2.12/src/thread/pth/
SDL_sysmutex.c 35 /* Create a mutex */
38 SDL_mutex *mutex; local
40 /* Allocate mutex memory */
41 mutex = (SDL_mutex *)SDL_malloc(sizeof(*mutex));
42 if ( mutex ) {
43 /* Create the mutex, with initial value signaled */
44 if (!pth_mutex_init(&(mutex->mutexpth_p))) {
45 SDL_SetError("Couldn't create mutex");
46 SDL_free(mutex);
    [all...]
  /device/samsung/crespo/sec_mm/sec_omx/sec_osal/
SEC_OSAL_Event.h 40 OMX_HANDLETYPE mutex; member in struct:_SEC_OSAL_THREADEVENT
SEC_OSAL_Mutex.c 38 pthread_mutex_t *mutex; local
40 mutex = (pthread_mutex_t *)SEC_OSAL_Malloc(sizeof(pthread_mutex_t));
41 if (!mutex)
44 if (pthread_mutex_init(mutex, NULL) != 0)
47 *mutexHandle = (OMX_HANDLETYPE)mutex;
53 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle; local
55 if (mutex == NULL)
58 if (pthread_mutex_destroy(mutex) != 0)
61 SEC_OSAL_Free(mutex);
67 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle local
81 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle; local
    [all...]
  /external/icu4c/common/
mutex.cpp 8 * file name: mutex.cpp
15 #include "mutex.h"
32 Mutex mutex; local
58 Mutex mutex; local
84 /* If UCONFIG_NO_SERVICE, then there is no invocation of Mutex elsewhere in
86 static Mutex *aMutex = 0;
  /external/qemu/audio/
audio_pt_int.h 10 pthread_mutex_t mutex; member in struct:audio_pt
  /external/qemu/distrib/sdl-1.2.12/src/thread/dc/
SDL_sysmutex.c 34 spinlock_t mutex; member in struct:SDL_mutex
37 /* Create a mutex */
40 SDL_mutex *mutex; local
42 /* Allocate mutex memory */
43 mutex = (SDL_mutex *)SDL_malloc(sizeof(*mutex));
44 if ( mutex ) {
45 spinlock_init(&mutex->mutex);
46 mutex->recursive = 0
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/epoc/
SDL_sysmutex.cpp 31 /* Mutex functions using the Win32 API */
52 /* Create a mutex */
60 SDL_SetError("Couldn't create mutex");
62 SDL_mutex* mutex = new /*(ELeave)*/ SDL_mutex; local
63 mutex->handle = rmutex.Handle();
64 return(mutex);
67 /* Free the mutex */
68 void SDL_DestroyMutex(SDL_mutex *mutex)
70 if ( mutex )
73 rmutex.SetHandle(mutex->handle)
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/generic/
SDL_sysmutex.c 36 /* Create a mutex */
39 SDL_mutex *mutex; local
41 /* Allocate mutex memory */
42 mutex = (SDL_mutex *)SDL_malloc(sizeof(*mutex));
43 if ( mutex ) {
44 /* Create the mutex semaphore, with initial value 1 */
45 mutex->sem = SDL_CreateSemaphore(1);
46 mutex->recursive = 0;
47 mutex->owner = 0
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/os2/
SDL_sysmutex.c 24 /* Mutex functions using the OS/2 API */
37 /* Create a mutex */
40 SDL_mutex *mutex; local
43 /* Allocate mutex memory */
44 mutex = (SDL_mutex *)SDL_malloc(sizeof(*mutex));
45 if (mutex)
47 /* Create the mutex, with initial value signaled */
49 &(mutex->hmtxID), // Pointer to handle
54 SDL_SetError("Couldn't create mutex");
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/win32/
SDL_sysmutex.c 24 /* Mutex functions using the Win32 API */
36 /* Create a mutex */
39 SDL_mutex *mutex; local
41 /* Allocate mutex memory */
42 mutex = (SDL_mutex *)SDL_malloc(sizeof(*mutex));
43 if ( mutex ) {
44 /* Create the mutex, with initial value signaled */
45 mutex->id = CreateMutex(NULL, FALSE, NULL);
46 if ( ! mutex->id )
    [all...]
  /bionic/libc/kernel/common/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)
  /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.12/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.12/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...]
  /frameworks/base/include/ui/
FramebufferNativeWindow.h 78 mutable Mutex mutex; member in class:android::FramebufferNativeWindow
  /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
  /prebuilt/ndk/android-ndk-r4/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)

Completed in 300 milliseconds

1 2 3 4