/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...] |
/dalvik/libcore/archive/src/main/native/ |
hymutex.h | 24 typedef pthread_mutex_t MUTEX; 27 #define MUTEX_INIT(mutex) (pthread_mutex_init(&(mutex), NULL) == 0) 30 #define MUTEX_DESTROY(mutex) pthread_mutex_destroy(&(mutex)) 33 #define MUTEX_ENTER(mutex) pthread_mutex_lock(&(mutex)) 39 #define MUTEX_TRY_ENTER(mutex) pthread_mutex_trylock(&(mutex)) 42 #define MUTEX_EXIT(mutex) pthread_mutex_unlock(&(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...] |
/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...] |
/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/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/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...] |
/external/srec/portable/include/ |
pmutex.h | 47 typedef HANDLE MUTEX; 50 #define createMutex(mutex, locked) \ 51 (*mutex = CreateMutex(NULL, locked, NULL)) == 0 ? ESR_MUTEX_CREATION_ERROR : ESR_SUCCESS 53 #define lockMutex(mutex) waitForHandle(mutex, INFINITE) 54 #define unlockMutex(mutex) (ReleaseMutex(*mutex) ? ESR_SUCCESS : ESR_FATAL_ERROR) 55 #define deleteMutex(mutex) ((void) CloseHandle(*mutex)) 70 typedef pthread_mutex_t MUTEX; [all...] |
/external/bluetooth/glib/tests/ |
errorcheck-mutex-test.c | 10 locking_thread (gpointer mutex) 12 g_mutex_lock ((GMutex*)mutex); 20 GMutex* mutex = g_mutex_new (); local 21 g_mutex_lock (mutex); 22 g_mutex_lock (mutex); 28 GMutex* mutex = g_mutex_new (); local 29 g_mutex_lock (mutex); 30 g_mutex_trylock (mutex); 36 GMutex* mutex = g_mutex_new (); local 37 g_mutex_lock (mutex); 45 GMutex* mutex = g_mutex_new (); local 53 GMutex* mutex = g_mutex_new (); local 61 GMutex* mutex = g_mutex_new (); local 72 GMutex* mutex = g_mutex_new (); local 80 GMutex* mutex = g_mutex_new (); local [all...] |
/bionic/libc/kernel/common/linux/ |
mutex-debug.h | 20 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
|
/ndk/build/platforms/android-3/arch-arm/usr/include/linux/ |
mutex-debug.h | 20 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
|
/ndk/build/platforms/android-4/arch-arm/usr/include/linux/ |
mutex-debug.h | 20 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
|
/ndk/build/platforms/android-5/arch-arm/usr/include/linux/ |
mutex-debug.h | 20 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
|
/ndk/build/platforms/android-5/arch-x86/usr/include/linux/ |
mutex-debug.h | 20 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
|
/ndk/build/platforms/android-8/arch-arm/usr/include/linux/ |
mutex-debug.h | 20 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
|
/ndk/build/platforms/android-8/arch-x86/usr/include/linux/ |
mutex-debug.h | 20 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
|
/bionic/libc/kernel/arch-x86/asm/ |
mmu.h | 16 #include <linux/mutex.h> 21 struct mutex lock;
|
/ndk/build/platforms/android-5/arch-x86/usr/include/asm/ |
mmu.h | 16 #include <linux/mutex.h> 21 struct mutex lock;
|
/ndk/build/platforms/android-8/arch-x86/usr/include/asm/ |
mmu.h | 16 #include <linux/mutex.h> 21 struct mutex lock;
|
/external/kernel-headers/original/linux/ |
mutex-debug.h | 14 #define mutex_init(mutex) \ 18 __mutex_init((mutex), #mutex, &__key); \ 21 extern void FASTCALL(mutex_destroy(struct mutex *lock));
|
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/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/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...] |
/external/kernel-headers/original/asm-x86/ |
mmu.h | 5 #include <linux/mutex.h> 19 struct mutex lock;
|