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

1 2 3 4 5 6 7 8 9

  /external/valgrind/main/memcheck/tests/darwin/
pth-supp.c 6 pthread_rwlock_t mutex; local
7 pthread_rwlock_init(&mutex, NULL);
  /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/valgrind/main/drd/tests/
pth_process_shared_mutex.c 2 * Test program that locks and unlocks a process-shared mutex.
15 pthread_mutex_t mutex; local
20 pthread_mutex_init(&mutex, &attr);
23 pthread_mutex_lock(&mutex);
24 pthread_mutex_unlock(&mutex);
25 pthread_mutex_destroy(&mutex);
trylock.c 22 pthread_mutex_t mutex; local
63 r = pthread_mutex_init(&mutex, NULL); assert(r == 0);
64 fprintf(stderr, "Locking mutex via pthread_mutex_trylock().\n");
65 r = pthread_mutex_trylock(&mutex); assert(r == 0);
66 r = pthread_mutex_unlock(&mutex); assert(r == 0);
67 fprintf(stderr, "Locking mutex via pthread_mutex_lock().\n");
68 r = pthread_mutex_lock(&mutex); assert(r == 0);
69 r = pthread_mutex_unlock(&mutex); assert(r == 0);
70 fprintf(stderr, "Locking mutex via pthread_mutex_timedlock().\n");
72 r = pthread_mutex_timedlock(&mutex, &abs_timeout); assert(r == 0)
    [all...]
bug-235681.c 13 pthread_mutex_t mutex; variable
25 rc = pthread_mutex_lock(&mutex);
31 rc = pthread_cond_wait(&cond_var, &mutex);
39 rc = pthread_mutex_unlock(&mutex);
56 rc = pthread_mutex_init(&mutex, NULL);
71 rc = pthread_mutex_lock(&mutex);
82 rc = pthread_mutex_unlock(&mutex);
  /external/valgrind/main/helgrind/tests/
cond_timedwait_invalid.c 10 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; local
21 assert(pthread_mutex_lock(&mutex)==0);
22 assert(pthread_cond_timedwait(&cond, &mutex, &abstime)==EINVAL);
23 assert(pthread_mutex_unlock(&mutex)==0);
pth_destroy_cond.c 8 pthread_mutex_t mutex; variable
15 pthread_mutex_lock(&mutex);
19 pthread_mutex_unlock(&mutex);
25 pthread_mutex_init(&mutex, NULL);
28 pthread_mutex_lock(&mutex);
31 pthread_cond_wait(&cond, &mutex);
33 pthread_mutex_unlock(&mutex);
36 pthread_mutex_destroy(&mutex);
  /ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
try_lock_until.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
17 #include <mutex>
22 struct mutex struct
35 mutex m;
40 std::unique_lock<mutex> lk(m, std::defer_lock);
try_lock.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
21 struct mutex struct
31 mutex m;
35 std::unique_lock<mutex> lk(m, std::defer_lock);
try_lock_for.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
17 #include <mutex>
24 struct mutex struct
36 mutex m;
40 std::unique_lock<mutex> lk(m, std::defer_lock);
unlock.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
21 struct mutex struct
27 mutex m;
31 std::unique_lock<mutex> lk(m);
  /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...]
  /hardware/samsung_slsi/exynos5/mobicore/daemon/Daemon/Device/
NotificationQueue.h 81 CMutex mutex; member in class:NotificationQueue
  /external/icu4c/common/
mutex.cpp 8 * file name: mutex.cpp
15 #include "mutex.h"
41 Mutex mutex; local
102 Mutex mutex; local
133 /* If UCONFIG_NO_SERVICE, then there is no invocation of Mutex elsewhere in
135 static Mutex *aMutex = 0;
  /external/qemu/audio/
audio_pt_int.h 10 pthread_mutex_t mutex; member in struct:audio_pt
  /hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/osal/
Exynos_OSAL_Event.h 40 OMX_HANDLETYPE mutex; member in struct:_Exynos_OSAL_THREADEVENT
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...]
  /ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
member_swap.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
19 struct mutex struct
25 mutex m;
29 std::unique_lock<mutex> lk1(m);
30 std::unique_lock<mutex> lk2;
32 assert(lk1.mutex() == nullptr);
34 assert(lk2.mutex() == &m);
nonmember_swap.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
14 // template <class Mutex>
15 // void swap(unique_lock<Mutex>& x, unique_lock<Mutex>& y);
17 #include <mutex>
20 struct mutex struct
26 mutex m;
30 std::unique_lock<mutex> lk1(m);
31 std::unique_lock<mutex> lk2
    [all...]
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...]
  /packages/apps/Nfc/nxp/jni/
com_android_nfc_list.h 35 pthread_mutex_t mutex; member in struct:listHead
  /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/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/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/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...]

Completed in 511 milliseconds

1 2 3 4 5 6 7 8 9