Searched defs:mtx (Results 1 - 25 of 38) sorted by relevance

12

/external/jemalloc/include/jemalloc/internal/
H A Dmb.h105 malloc_mutex_t mtx; local
107 malloc_mutex_init(&mtx);
108 malloc_mutex_lock(&mtx);
109 malloc_mutex_unlock(&mtx);
/external/compiler-rt/test/tsan/
H A Dbench_rwmutex.cc6 pthread_rwlock_t mtx; variable
10 pthread_rwlock_rdlock(&mtx);
11 pthread_rwlock_unlock(&mtx);
16 pthread_rwlock_init(&mtx, 0);
17 pthread_rwlock_wrlock(&mtx);
18 pthread_rwlock_unlock(&mtx);
19 pthread_rwlock_rdlock(&mtx);
20 pthread_rwlock_unlock(&mtx);
H A Dbench_local_mutex.cc6 pthread_mutex_t *mtx; variable
11 pthread_mutex_lock(&mtx[tid * kStride]);
12 pthread_mutex_unlock(&mtx[tid * kStride]);
17 mtx = (pthread_mutex_t*)malloc(bench_nthread * kStride * sizeof(*mtx));
19 pthread_mutex_init(&mtx[i * kStride], 0);
20 pthread_mutex_lock(&mtx[i * kStride]);
21 pthread_mutex_unlock(&mtx[i * kStride]);
H A Dbench_mutex.cc6 pthread_mutex_t mtx; variable
12 pthread_mutex_lock(&mtx);
14 pthread_cond_wait(&cv, &mtx);
17 pthread_mutex_unlock(&mtx);
22 pthread_mutex_init(&mtx, 0);
H A Dbench_ten_mutexes.cc7 pthread_mutex_t mtx[kMutex]; variable
14 pthread_mutex_lock(&mtx[idx]);
15 pthread_mutex_unlock(&mtx[idx]);
21 pthread_mutex_init(&mtx[i], 0);
H A Dfree_race.c8 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);
H A Dmutexset1.cc5 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);
H A Dmutexset2.cc5 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);
H A Dmutexset8.cc5 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;
H A Dlongjmp3.cc20 pthread_mutex_t mtx; local
21 pthread_mutex_init(&mtx, 0);
22 pthread_mutex_lock(&mtx);
23 pthread_mutex_destroy(&mtx);
H A Dlongjmp4.cc23 pthread_mutex_t mtx; local
24 pthread_mutex_init(&mtx, 0);
25 pthread_mutex_lock(&mtx);
26 pthread_mutex_destroy(&mtx);
H A Dmutexset7.cc14 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;
H A Dreal_deadlock_detector_stress_test.cc26 Mutex mtx[kMutexes]; variable
57 Mutex *m = &mtx[id];
128 Mutex *m = &mtx[id];
140 Mutex *m = &mtx[id];
158 Mutex *m = &mtx[id];
174 mtx[i].state = kStateNotInited;
/external/jemalloc/test/src/
H A Dmtx.c8 mtx_init(mtx_t *mtx) argument
12 if (!InitializeCriticalSectionAndSpinCount(&mtx->lock, _CRT_SPINCOUNT))
15 mtx->lock = 0;
22 if (pthread_mutex_init(&mtx->lock, &attr) != 0) {
32 mtx_fini(mtx_t *mtx) argument
38 pthread_mutex_destroy(&mtx->lock);
43 mtx_lock(mtx_t *mtx) argument
47 EnterCriticalSection(&mtx->lock);
49 OSSpinLockLock(&mtx->lock);
51 pthread_mutex_lock(&mtx
56 mtx_unlock(mtx_t *mtx) argument
[all...]
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_persistent_allocator.h29 StaticSpinMutex mtx; // Protects alloc of new blocks for region allocator. member in class:__sanitizer::PersistentAllocator
51 SpinMutexLock l(&mtx);
H A Dsanitizer_addrhashmap.h60 RWMutex mtx; member in struct:__sanitizer::AddrHashMap::Bucket
185 b->mtx.ReadLock();
196 b->mtx.ReadUnlock();
202 b->mtx.Lock();
211 b->mtx.Unlock();
228 b->mtx.Unlock();
236 b->mtx.Unlock();
296 b->mtx.Unlock();
325 b->mtx.Unlock();
329 b->mtx
[all...]
/external/jemalloc/test/unit/
H A Dmtx.c8 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:__anon6455
29 mtx_lock(&arg->mtx);
31 mtx_unlock(&arg->mtx);
42 assert_false(mtx_init(&arg.mtx), "Unexpected mtx_init() failure");
/external/jmonkeyengine/engine/src/bullet-native/
H A Dcom_jme3_bullet_collision_shapes_CompoundCollisionShape.cpp74 btMatrix3x3 mtx = btMatrix3x3(); local
75 btTransform trans = btTransform(mtx);
/external/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_test_util_linux.cc50 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; local
51 pthread_mutex_lock(&mtx);
52 pthread_mutex_unlock(&mtx);
53 pthread_mutex_destroy(&mtx);
H A Dtsan_posix.cc20 pthread_mutex_t *mtx; member in struct:thread_key
23 thread_key(pthread_key_t key, pthread_mutex_t *mtx, int val, int *cnt) argument
25 , mtx(mtx)
33 EXPECT_EQ(pthread_mutex_lock(k->mtx), 0);
36 EXPECT_EQ(pthread_mutex_unlock(k->mtx), 0);
57 pthread_mutex_t mtx; local
58 EXPECT_EQ(pthread_mutex_init(&mtx, 0), 0);
61 k[0] = new thread_key(key, &mtx, 42, &cnt);
62 k[1] = new thread_key(key, &mtx, 4
[all...]
/external/llvm/include/llvm/Support/
H A DMutex.h140 SmartMutex<mt_only>& mtx; member in class:llvm::sys::SmartScopedLock
143 SmartScopedLock(SmartMutex<mt_only>& m) : mtx(m) {
144 mtx.lock();
148 mtx.unlock();
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_mutex_test.cc27 explicit TestData(MutexType *mtx) argument
28 : mtx_(mtx) {
98 static void check_locked(MutexType *mtx) { argument
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
127 BlockingMutex *mtx = new(mtxmem) BlockingMutex(LINKER_INITIALIZED); local
[all...]
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_sync.h32 Mutex mtx; member in struct:__tsan::SyncVar
46 // with the mtx. This reduces contention for hot sync objects.
H A Dtsan_trace.h57 Mutex mtx; member in struct:__tsan::Trace
68 : mtx(MutexTypeTrace, StatMtxTrace) {
/external/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_mutex_test.cc25 explicit TestData(MutexType *mtx) argument
26 : mtx_(mtx) {
97 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations);
98 TestData<Mutex> data(&mtx);
107 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations);
108 TestData<Mutex> data(&mtx);
117 SpinMutex mtx; local
118 TestData<SpinMutex> data(&mtx);

Completed in 718 milliseconds

12