/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/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/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:__anon22513 29 mtx_lock(&arg->mtx); 31 mtx_unlock(&arg->mtx); 42 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 | 96 pthread_mutex_t mtx; variable 104 ret = pthread_mutex_trylock(&mtx); 117 if ((ret = pthread_mutex_lock(&mtx))) { 130 if ((ret = pthread_mutex_unlock(&mtx))) { 168 if ((ret = pthread_mutex_init(&mtx, &ma))) { 179 if ((ret = pthread_mutex_lock(&mtx))) { 183 if ((ret = pthread_mutex_lock(&mtx))) { 187 if ((ret = pthread_mutex_unlock(&mtx))) { 211 if ((ret = pthread_mutex_unlock(&mtx))) { 221 ret = pthread_mutex_unlock(&mtx); [all...] |
/external/mesa3d/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); 200 mtx_init(mtx_t *mtx, int type [all...] |
threads_win32.h | 121 static inline int mtx_trylock(mtx_t *mtx); 122 static inline int mtx_lock(mtx_t *mtx); 123 static inline int mtx_unlock(mtx_t *mtx); 209 static int impl_cond_do_wait(cnd_t *cond, mtx_t *mtx, const xtime *xt) 220 mtx_unlock(mtx); 257 mtx_lock(mtx); 381 cnd_timedwait(cnd_t *cond, mtx_t *mtx, const xtime *xt) 383 if (!cond || !mtx || !xt) return thrd_error; 385 if (SleepConditionVariableCS(&cond->condvar, mtx, impl_xtime2msec(xt))) 389 return impl_cond_do_wait(cond, mtx, xt) [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();
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
Description.cpp | 50 void Description::setProjectionMatrix(const mat4& mtx) { 51 mProjectionMatrix = mtx; 54 void Description::setSaturationMatrix(const mat4& mtx) { 55 mSaturationMatrix = mtx; 58 void Description::setColorMatrix(const mat4& mtx) { 59 mColorMatrix = 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/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/ |
1-3.c | 81 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; variable 86 ret = pthread_mutex_lock(&mtx); 94 ret = pthread_mutex_unlock(&mtx); 151 ret = pthread_mutex_lock(&mtx); 162 ret = pthread_mutex_unlock(&mtx);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/ |
4-1.c | 50 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; variable 58 ret = pthread_mutex_lock(&mtx); 62 ret = pthread_mutex_unlock(&mtx); 104 ret = pthread_mutex_lock(&mtx); 166 ret = pthread_mutex_unlock(&mtx); 178 ret = pthread_mutex_unlock(&mtx);
|
/external/compiler-rt/lib/tsan/rtl/ |
tsan_trace.h | 57 Mutex mtx; member in struct:__tsan::Trace 68 : 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);
|