HomeSort by relevance Sort by last modified time
    Searched refs:mtx (Results 1 - 25 of 137) sorted by null

1 2 3 4 5 6

  /external/compiler-rt/test/tsan/
bench_rwmutex.cc 9 pthread_rwlock_t mtx; variable
13 pthread_rwlock_rdlock(&mtx);
14 pthread_rwlock_unlock(&mtx);
19 pthread_rwlock_init(&mtx, 0);
20 pthread_rwlock_wrlock(&mtx);
21 pthread_rwlock_unlock(&mtx);
22 pthread_rwlock_rdlock(&mtx);
23 pthread_rwlock_unlock(&mtx);
bench_mutex.cc 9 pthread_mutex_t mtx; variable
15 pthread_mutex_lock(&mtx);
17 pthread_cond_wait(&cv, &mtx);
20 pthread_mutex_unlock(&mtx);
25 pthread_mutex_init(&mtx, 0);
bench_local_mutex.cc 9 pthread_mutex_t *mtx; variable
14 pthread_mutex_lock(&mtx[tid * kStride]);
15 pthread_mutex_unlock(&mtx[tid * kStride]);
20 mtx = (pthread_mutex_t*)malloc(bench_nthread * kStride * sizeof(*mtx));
22 pthread_mutex_init(&mtx[i * kStride], 0);
23 pthread_mutex_lock(&mtx[i * kStride]);
24 pthread_mutex_unlock(&mtx[i * kStride]);
free_race.c 8 pthread_mutex_t mtx; variable
11 pthread_mutex_lock(&mtx);
13 pthread_mutex_unlock(&mtx);
20 pthread_mutex_lock(&mtx);
22 pthread_mutex_unlock(&mtx);
29 pthread_mutex_init(&mtx, 0);
34 pthread_mutex_destroy(&mtx);
mutexset8.cc 5 pthread_mutex_t *mtx; variable
9 pthread_mutex_lock(mtx);
11 pthread_mutex_unlock(mtx);
30 mtx = new pthread_mutex_t;
31 pthread_mutex_init(mtx, 0);
37 pthread_mutex_destroy(mtx);
38 delete mtx;
mutexset7.cc 14 pthread_mutex_t *mtx = new pthread_mutex_t; local
15 pthread_mutex_init(mtx, 0);
16 pthread_mutex_lock(mtx);
18 pthread_mutex_unlock(mtx);
19 pthread_mutex_destroy(mtx);
20 delete mtx;
bench_ten_mutexes.cc 10 pthread_mutex_t mtx[kMutex]; variable
17 pthread_mutex_lock(&mtx[idx]);
18 pthread_mutex_unlock(&mtx[idx]);
24 pthread_mutex_init(&mtx[i], 0);
mutexset1.cc 5 pthread_mutex_t mtx; variable
9 pthread_mutex_lock(&mtx);
11 pthread_mutex_unlock(&mtx);
30 pthread_mutex_init(&mtx, 0);
36 pthread_mutex_destroy(&mtx);
mutexset2.cc 5 pthread_mutex_t mtx; variable
8 pthread_mutex_lock(&mtx);
10 pthread_mutex_unlock(&mtx);
30 pthread_mutex_init(&mtx, 0);
36 pthread_mutex_destroy(&mtx);
longjmp3.cc 24 pthread_mutex_t mtx; local
25 pthread_mutex_init(&mtx, 0);
26 pthread_mutex_lock(&mtx);
27 pthread_mutex_destroy(&mtx);
longjmp4.cc 27 pthread_mutex_t mtx; local
28 pthread_mutex_init(&mtx, 0);
29 pthread_mutex_lock(&mtx);
30 pthread_mutex_destroy(&mtx);
  /external/mesa3d/src/util/
simple_mtx.h 64 simple_mtx_init(simple_mtx_t *mtx, MAYBE_UNUSED int type)
68 mtx->val = 0;
72 simple_mtx_destroy(UNUSED simple_mtx_t *mtx)
77 simple_mtx_lock(simple_mtx_t *mtx)
81 c = __sync_val_compare_and_swap(&mtx->val, 0, 1);
84 c = __sync_lock_test_and_set(&mtx->val, 2);
86 futex_wait(&mtx->val, 2, NULL);
87 c = __sync_lock_test_and_set(&mtx->val, 2);
93 simple_mtx_unlock(simple_mtx_t *mtx)
97 c = __sync_fetch_and_sub(&mtx->val, 1)
    [all...]
  /external/jemalloc/test/src/
mtx.c 8 mtx_init(mtx_t *mtx)
12 if (!InitializeCriticalSectionAndSpinCount(&mtx->lock, _CRT_SPINCOUNT))
15 mtx->lock = OS_UNFAIR_LOCK_INIT;
17 mtx->lock = 0;
24 if (pthread_mutex_init(&mtx->lock, &attr) != 0) {
34 mtx_fini(mtx_t *mtx)
41 pthread_mutex_destroy(&mtx->lock);
46 mtx_lock(mtx_t *mtx)
50 EnterCriticalSection(&mtx->lock);
52 os_unfair_lock_lock(&mtx->lock)
    [all...]
  /external/jemalloc_new/test/src/
mtx.c 8 mtx_init(mtx_t *mtx) {
10 if (!InitializeCriticalSectionAndSpinCount(&mtx->lock,
15 mtx->lock = OS_UNFAIR_LOCK_INIT;
17 mtx->lock = 0;
25 if (pthread_mutex_init(&mtx->lock, &attr) != 0) {
35 mtx_fini(mtx_t *mtx) {
40 pthread_mutex_destroy(&mtx->lock);
45 mtx_lock(mtx_t *mtx) {
47 EnterCriticalSection(&mtx->lock);
49 os_unfair_lock_lock(&mtx->lock)
    [all...]
  /external/jemalloc/test/include/test/
mtx.h 2 * mtx is a slightly simplified version of malloc_mutex. This code duplication
20 bool mtx_init(mtx_t *mtx);
21 void mtx_fini(mtx_t *mtx);
22 void mtx_lock(mtx_t *mtx);
23 void mtx_unlock(mtx_t *mtx);
  /external/jemalloc_new/test/include/test/
mtx.h 2 * mtx is a slightly simplified version of malloc_mutex. This code duplication
20 bool mtx_init(mtx_t *mtx);
21 void mtx_fini(mtx_t *mtx);
22 void mtx_lock(mtx_t *mtx);
23 void mtx_unlock(mtx_t *mtx);
  /external/jemalloc/test/unit/
mtx.c 8 mtx_t mtx; local
10 assert_false(mtx_init(&mtx), "Unexpected mtx_init() failure");
11 mtx_lock(&mtx);
12 mtx_unlock(&mtx);
13 mtx_fini(&mtx);
18 mtx_t mtx; member in struct:__anon25119
29 mtx_lock(&arg->mtx);
31 mtx_unlock(&arg->mtx);
42 assert_false(mtx_init(&arg.mtx), "Unexpected mtx_init() failure");
  /external/jemalloc_new/test/unit/
mtx.c 7 mtx_t mtx; local
9 assert_false(mtx_init(&mtx), "Unexpected mtx_init() failure");
10 mtx_lock(&mtx);
11 mtx_unlock(&mtx);
12 mtx_fini(&mtx);
17 mtx_t mtx; member in struct:__anon25169
27 mtx_lock(&arg->mtx);
29 mtx_unlock(&arg->mtx);
39 assert_false(mtx_init(&arg.mtx), "Unexpected mtx_init() failure");
  /external/jemalloc/include/jemalloc/internal/
mb.h 105 malloc_mutex_t mtx; local
107 malloc_mutex_init(&mtx, "mb", WITNESS_RANK_OMIT);
108 malloc_mutex_lock(TSDN_NULL, &mtx);
109 malloc_mutex_unlock(TSDN_NULL, &mtx);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/
4-1.c 89 pthread_mutex_t mtx; variable
97 ret = pthread_mutex_trylock(&mtx);
110 if ((ret = pthread_mutex_lock(&mtx))) {
123 if ((ret = pthread_mutex_unlock(&mtx))) {
161 if ((ret = pthread_mutex_init(&mtx, &ma))) {
172 if ((ret = pthread_mutex_lock(&mtx))) {
176 if ((ret = pthread_mutex_lock(&mtx))) {
180 if ((ret = pthread_mutex_unlock(&mtx))) {
204 if ((ret = pthread_mutex_unlock(&mtx))) {
214 ret = pthread_mutex_unlock(&mtx);
    [all...]
  /external/mesa3d/include/c11/
threads_posix.h 135 cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *abs_time)
139 assert(mtx != NULL);
143 rt = pthread_cond_timedwait(cond, mtx, abs_time);
151 cnd_wait(cnd_t *cond, mtx_t *mtx)
153 assert(mtx != NULL);
155 return (pthread_cond_wait(cond, mtx) == 0) ? thrd_success : thrd_error;
162 mtx_destroy(mtx_t *mtx)
164 assert(mtx != NULL);
165 pthread_mutex_destroy(mtx);
196 mtx_init(mtx_t *mtx, int type
    [all...]
  /external/virglrenderer/src/gallium/include/c11/
threads_posix.h 135 cnd_timedwait(cnd_t *cond, mtx_t *mtx, const xtime *xt)
140 assert(mtx != NULL);
147 rt = pthread_cond_timedwait(cond, mtx, &abs_time);
155 cnd_wait(cnd_t *cond, mtx_t *mtx)
157 assert(mtx != NULL);
159 return (pthread_cond_wait(cond, mtx) == 0) ? thrd_success : thrd_error;
166 mtx_destroy(mtx_t *mtx)
168 assert(mtx != NULL);
169 pthread_mutex_destroy(mtx);
174 mtx_init(mtx_t *mtx, int type
    [all...]
  /external/swiftshader/third_party/LLVM/include/llvm/Support/
Mutex.h 138 SmartMutex<mt_only>& mtx; member in class:llvm::sys::SmartScopedLock
141 SmartScopedLock(SmartMutex<mt_only>& m) : mtx(m) {
142 mtx.acquire();
146 mtx.release();
  /external/compiler-rt/lib/sanitizer_common/tests/
sanitizer_mutex_test.cc 27 explicit TestData(MutexType *mtx)
28 : mtx_(mtx) {
98 static void check_locked(MutexType *mtx) {
99 GenericScopedLock<MutexType> l(mtx);
100 mtx->CheckLocked();
104 SpinMutex mtx; local
105 mtx.Init();
106 TestData<SpinMutex> data(&mtx);
115 SpinMutex mtx; local
116 mtx.Init()
127 BlockingMutex *mtx = new(mtxmem) BlockingMutex(LINKER_INITIALIZED); local
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/
1-3.c 79 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; variable
84 ret = pthread_mutex_lock(&mtx);
92 ret = pthread_mutex_unlock(&mtx);
149 ret = pthread_mutex_lock(&mtx);
160 ret = pthread_mutex_unlock(&mtx);

Completed in 471 milliseconds

1 2 3 4 5 6