/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/ |
default.pass.cpp | 10 // <mutex> 12 // class mutex; 14 // mutex(); 16 #include <mutex> 20 std::mutex m;
|
assign.fail.cpp | 10 // <mutex> 12 // class mutex; 14 // mutex& operator=(const mutex&) = delete; 16 #include <mutex> 20 std::mutex m0; 21 std::mutex m1;
|
copy.fail.cpp | 10 // <mutex> 12 // class mutex; 14 // mutex(const mutex&) = delete; 16 #include <mutex> 20 std::mutex m0; 21 std::mutex m1(m0);
|
/external/qemu/distrib/sdl-1.2.15/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.15/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.15/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/arch-mips/asm/ |
mutex.h | 19 #include <asm-generic/mutex-dec.h>
|
/development/ndk/platforms/android-9/arch-mips/include/asm/ |
mutex.h | 19 #include <asm-generic/mutex-dec.h>
|
/external/kernel-headers/original/asm-mips/ |
mutex.h | 2 * Pull in the generic implementation for the mutex fastpath. 6 * implementation. (see asm-generic/mutex-xchg.h for details) 9 #include <asm-generic/mutex-dec.h>
|
/external/valgrind/main/memcheck/tests/darwin/ |
pth-supp.c | 6 pthread_rwlock_t mutex; local 7 pthread_rwlock_init(&mutex, NULL);
|
/prebuilts/ndk/8/platforms/android-14/arch-mips/usr/include/asm/ |
mutex.h | 19 #include <asm-generic/mutex-dec.h>
|
/prebuilts/ndk/8/platforms/android-9/arch-mips/usr/include/asm/ |
mutex.h | 19 #include <asm-generic/mutex-dec.h>
|
/prebuilts/ndk/9/platforms/android-14/arch-mips/usr/include/asm/ |
mutex.h | 19 #include <asm-generic/mutex-dec.h>
|
/prebuilts/ndk/9/platforms/android-18/arch-mips/usr/include/asm/ |
mutex.h | 19 #include <asm-generic/mutex-dec.h>
|
/prebuilts/ndk/9/platforms/android-9/arch-mips/usr/include/asm/ |
mutex.h | 19 #include <asm-generic/mutex-dec.h>
|
/external/qemu/distrib/sdl-1.2.15/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.15/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.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...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/ |
mutex.pass.cpp | 10 // <mutex> 12 // template <class Mutex> class unique_lock; 14 // mutex_type *mutex() const; 16 #include <mutex> 19 std::mutex m; 23 std::unique_lock<std::mutex> lk0; 24 assert(lk0.mutex() == nullptr); 25 std::unique_lock<std::mutex> lk1(m); 26 assert(lk1.mutex() == &m); 28 assert(lk1.mutex() == &m) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.guard/ |
types.pass.cpp | 10 // <mutex> 12 // template <class Mutex> 16 // typedef Mutex mutex_type; 20 #include <mutex> 25 static_assert((std::is_same<std::lock_guard<std::mutex>::mutex_type, 26 std::mutex>::value), "");
|
copy.fail.cpp | 10 // <mutex> 12 // template <class Mutex> class lock_guard; 16 #include <mutex> 20 std::mutex m; 21 std::lock_guard<std::mutex> lg0(m); 22 std::lock_guard<std::mutex> lg(lg0);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/ |
release.pass.cpp | 10 // <mutex> 12 // template <class Mutex> class unique_lock; 16 #include <mutex> 19 struct mutex struct 27 int mutex::lock_count = 0; 28 int mutex::unlock_count = 0; 30 mutex m; 34 std::unique_lock<mutex> lk(m); 35 assert(lk.mutex() == &m); 37 assert(mutex::lock_count == 1) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/ |
types.pass.cpp | 10 // <mutex> 12 // template <class Mutex> 16 // typedef Mutex mutex_type; 20 #include <mutex> 25 static_assert((std::is_same<std::unique_lock<std::mutex>::mutex_type, 26 std::mutex>::value), "");
|
/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/osal/ |
Exynos_OSAL_Mutex.c | 37 pthread_mutex_t *mutex; local 39 mutex = (pthread_mutex_t *)Exynos_OSAL_Malloc(sizeof(pthread_mutex_t)); 40 if (!mutex) 43 if (pthread_mutex_init(mutex, NULL) != 0) { 44 Exynos_OSAL_Free(mutex); 48 *mutexHandle = (OMX_HANDLETYPE)mutex; 54 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle; local 56 if (mutex == NULL) 59 if (pthread_mutex_destroy(mutex) != 0) 62 Exynos_OSAL_Free(mutex); 68 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle; local 82 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle; local [all...] |