/external/jemalloc/include/jemalloc/internal/ |
H A D | mb.h | 105 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 D | bench_rwmutex.cc | 6 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 D | bench_local_mutex.cc | 6 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 D | bench_mutex.cc | 6 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 D | bench_ten_mutexes.cc | 7 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 D | 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);
|
H A D | 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);
|
H A D | 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);
|
H A D | 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;
|
H A D | longjmp3.cc | 20 pthread_mutex_t mtx; local 21 pthread_mutex_init(&mtx, 0); 22 pthread_mutex_lock(&mtx); 23 pthread_mutex_destroy(&mtx);
|
H A D | longjmp4.cc | 23 pthread_mutex_t mtx; local 24 pthread_mutex_init(&mtx, 0); 25 pthread_mutex_lock(&mtx); 26 pthread_mutex_destroy(&mtx);
|
H A D | 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;
|
H A D | real_deadlock_detector_stress_test.cc | 26 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 D | mtx.c | 8 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 D | sanitizer_persistent_allocator.h | 29 StaticSpinMutex mtx; // Protects alloc of new blocks for region allocator. member in class:__sanitizer::PersistentAllocator 51 SpinMutexLock l(&mtx);
|
H A D | sanitizer_addrhashmap.h | 60 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 D | 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:__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 D | com_jme3_bullet_collision_shapes_CompoundCollisionShape.cpp | 74 btMatrix3x3 mtx = btMatrix3x3(); local 75 btTransform trans = btTransform(mtx);
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
H A D | tsan_test_util_linux.cc | 50 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 D | tsan_posix.cc | 20 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 D | Mutex.h | 140 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 D | sanitizer_mutex_test.cc | 27 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 D | tsan_sync.h | 32 Mutex mtx; member in struct:__tsan::SyncVar 46 // with the mtx. This reduces contention for hot sync objects.
|
H A D | tsan_trace.h | 57 Mutex mtx; member in struct:__tsan::Trace 68 : mtx(MutexTypeTrace, StatMtxTrace) {
|
/external/compiler-rt/lib/tsan/tests/unit/ |
H A D | tsan_mutex_test.cc | 25 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);
|