/external/jemalloc/include/jemalloc/internal/ |
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/ |
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]);
|
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);
|
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);
|
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);
|
free_race.c | 12 pthread_mutex_t mtx; variable 15 pthread_mutex_lock(&mtx); 17 pthread_mutex_unlock(&mtx); 23 pthread_mutex_lock(&mtx); 25 pthread_mutex_unlock(&mtx); 31 pthread_mutex_init(&mtx, 0); 36 pthread_mutex_destroy(&mtx);
|
mutexset1.cc | 7 pthread_mutex_t mtx; variable 11 pthread_mutex_lock(&mtx); 13 pthread_mutex_unlock(&mtx); 30 pthread_mutex_init(&mtx, 0); 36 pthread_mutex_destroy(&mtx);
|
mutexset2.cc | 7 pthread_mutex_t mtx; variable 10 pthread_mutex_lock(&mtx); 12 pthread_mutex_unlock(&mtx); 30 pthread_mutex_init(&mtx, 0); 36 pthread_mutex_destroy(&mtx);
|
mutexset7.cc | 16 pthread_mutex_t *mtx = new pthread_mutex_t; local 17 pthread_mutex_init(mtx, 0); 18 pthread_mutex_lock(mtx); 20 pthread_mutex_unlock(mtx); 21 pthread_mutex_destroy(mtx); 22 delete mtx;
|
mutexset8.cc | 7 pthread_mutex_t *mtx; variable 11 pthread_mutex_lock(mtx); 13 pthread_mutex_unlock(mtx); 30 mtx = new pthread_mutex_t; 31 pthread_mutex_init(mtx, 0); 37 pthread_mutex_destroy(mtx); 38 delete mtx;
|
longjmp3.cc | 20 pthread_mutex_t mtx; local 21 pthread_mutex_init(&mtx, 0); 22 pthread_mutex_lock(&mtx); 23 pthread_mutex_destroy(&mtx);
|
longjmp4.cc | 23 pthread_mutex_t mtx; local 24 pthread_mutex_init(&mtx, 0); 25 pthread_mutex_lock(&mtx); 26 pthread_mutex_destroy(&mtx);
|
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
ptw32_mutex_check_need_init.c | 52 register pthread_mutex_t mtx; local 65 mtx = *mutex; 67 if (mtx == PTHREAD_MUTEX_INITIALIZER) 71 else if (mtx == PTHREAD_RECURSIVE_MUTEX_INITIALIZER) 75 else if (mtx == PTHREAD_ERRORCHECK_MUTEX_INITIALIZER) 79 else if (mtx == NULL)
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_persistent_allocator.h | 29 StaticSpinMutex mtx; // Protects alloc of new blocks for region allocator. member in class:__sanitizer::PersistentAllocator 51 SpinMutexLock l(&mtx);
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
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);
|
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) 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, 43, &cnt) [all...] |
/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:__anon26472 29 mtx_lock(&arg->mtx); 31 mtx_unlock(&arg->mtx); 42 assert_false(mtx_init(&arg.mtx), "Unexpected mtx_init() failure");
|
/hardware/invensense/60xx/mlsdk/mllite/ |
accel.c | 137 signed char *mtx = mldl_cfg->pdata->accel.orientation; local 178 data[ii] = ((long)tmp[0] * mtx[3 * ii] + 179 (long)tmp[1] * mtx[3 * ii + 1] + 180 (long)tmp[2] * mtx[3 * ii + 2]);
|
/external/llvm/include/llvm/Support/ |
Mutex.h | 139 SmartMutex<mt_only>& mtx; member in class:llvm::sys::SmartScopedLock 142 SmartScopedLock(SmartMutex<mt_only>& m) : mtx(m) { 143 mtx.acquire(); 147 mtx.release();
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Region_Delegate.java | 238 AffineTransform mtx = new AffineTransform(); local 239 mtx.translate(dx, dy); 240 targetRegionDelegate.mArea.transform(mtx); 260 AffineTransform mtx = new AffineTransform(); local 261 mtx.scale(scale, scale); 262 targetRegionDelegate.mArea.transform(mtx);
|
/external/chromium_org/content/common/gpu/ |
stream_texture_android.cc | 141 float mtx[16]; local 142 surface_texture_->GetTransformMatrix(mtx); 145 if (memcmp(current_matrix_, mtx, sizeof(mtx)) != 0) { 146 memcpy(current_matrix_, mtx, sizeof(mtx)); 149 memcpy(¶ms.m00, mtx, sizeof(mtx));
|
/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/compiler-rt/lib/tsan/rtl/ |
tsan_sync.h | 32 Mutex mtx; member in struct:__tsan::SyncVar 46 // with the mtx. This reduces contention for hot sync objects.
|
tsan_trace.h | 64 Mutex mtx; member in struct:__tsan::Trace 72 : mtx(MutexTypeTrace, StatMtxTrace) {
|
/external/compiler-rt/lib/tsan/tests/unit/ |
tsan_mutex_test.cc | 25 explicit TestData(MutexType *mtx) 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);
|