/external/jemalloc/test/src/ |
D | mtx.c | 8 mtx_init(mtx_t *mtx) in mtx_init() argument 12 if (!InitializeCriticalSectionAndSpinCount(&mtx->lock, _CRT_SPINCOUNT)) in mtx_init() 15 mtx->lock = 0; in mtx_init() 22 if (pthread_mutex_init(&mtx->lock, &attr) != 0) { in mtx_init() 32 mtx_fini(mtx_t *mtx) in mtx_fini() argument 38 pthread_mutex_destroy(&mtx->lock); in mtx_fini() 43 mtx_lock(mtx_t *mtx) in mtx_lock() argument 47 EnterCriticalSection(&mtx->lock); in mtx_lock() 49 OSSpinLockLock(&mtx->lock); in mtx_lock() 51 pthread_mutex_lock(&mtx->lock); in mtx_lock() [all …]
|
/external/compiler-rt/test/tsan/ |
D | bench_rwmutex.cc | 6 pthread_rwlock_t mtx; variable 10 pthread_rwlock_rdlock(&mtx); in thread() 11 pthread_rwlock_unlock(&mtx); in thread() 16 pthread_rwlock_init(&mtx, 0); in bench() 17 pthread_rwlock_wrlock(&mtx); in bench() 18 pthread_rwlock_unlock(&mtx); in bench() 19 pthread_rwlock_rdlock(&mtx); in bench() 20 pthread_rwlock_unlock(&mtx); in bench()
|
D | bench_local_mutex.cc | 6 pthread_mutex_t *mtx; variable 11 pthread_mutex_lock(&mtx[tid * kStride]); in thread() 12 pthread_mutex_unlock(&mtx[tid * kStride]); in thread() 17 mtx = (pthread_mutex_t*)malloc(bench_nthread * kStride * sizeof(*mtx)); in bench() 19 pthread_mutex_init(&mtx[i * kStride], 0); in bench() 20 pthread_mutex_lock(&mtx[i * kStride]); in bench() 21 pthread_mutex_unlock(&mtx[i * kStride]); in bench()
|
D | free_race.c | 12 pthread_mutex_t mtx; variable 15 pthread_mutex_lock(&mtx); in Thread1() 17 pthread_mutex_unlock(&mtx); in Thread1() 23 pthread_mutex_lock(&mtx); in Thread2() 25 pthread_mutex_unlock(&mtx); in Thread2() 31 pthread_mutex_init(&mtx, 0); in main() 36 pthread_mutex_destroy(&mtx); in main()
|
D | mutexset8.cc | 7 pthread_mutex_t *mtx; variable 11 pthread_mutex_lock(mtx); in Thread1() 13 pthread_mutex_unlock(mtx); in Thread1() 30 mtx = new pthread_mutex_t; in main() 31 pthread_mutex_init(mtx, 0); in main() 37 pthread_mutex_destroy(mtx); in main() 38 delete mtx; in main()
|
D | mutexset7.cc | 16 pthread_mutex_t *mtx = new pthread_mutex_t; in Thread2() local 17 pthread_mutex_init(mtx, 0); in Thread2() 18 pthread_mutex_lock(mtx); in Thread2() 20 pthread_mutex_unlock(mtx); in Thread2() 21 pthread_mutex_destroy(mtx); in Thread2() 22 delete mtx; in Thread2()
|
D | bench_mutex.cc | 6 pthread_mutex_t mtx; variable 12 pthread_mutex_lock(&mtx); in thread() 14 pthread_cond_wait(&cv, &mtx); in thread() 17 pthread_mutex_unlock(&mtx); in thread() 22 pthread_mutex_init(&mtx, 0); in bench()
|
D | mutexset1.cc | 7 pthread_mutex_t mtx; variable 11 pthread_mutex_lock(&mtx); in Thread1() 13 pthread_mutex_unlock(&mtx); in Thread1() 30 pthread_mutex_init(&mtx, 0); in main() 36 pthread_mutex_destroy(&mtx); in main()
|
D | mutexset2.cc | 7 pthread_mutex_t mtx; variable 10 pthread_mutex_lock(&mtx); in Thread1() 12 pthread_mutex_unlock(&mtx); in Thread1() 30 pthread_mutex_init(&mtx, 0); in main() 36 pthread_mutex_destroy(&mtx); in main()
|
D | bench_ten_mutexes.cc | 7 pthread_mutex_t mtx[kMutex]; variable 14 pthread_mutex_lock(&mtx[idx]); in thread() 15 pthread_mutex_unlock(&mtx[idx]); in thread() 21 pthread_mutex_init(&mtx[i], 0); in bench()
|
D | longjmp3.cc | 20 pthread_mutex_t mtx; in badguy() local 21 pthread_mutex_init(&mtx, 0); in badguy() 22 pthread_mutex_lock(&mtx); in badguy() 23 pthread_mutex_destroy(&mtx); in badguy()
|
D | longjmp4.cc | 23 pthread_mutex_t mtx; in badguy() local 24 pthread_mutex_init(&mtx, 0); in badguy() 25 pthread_mutex_lock(&mtx); in badguy() 26 pthread_mutex_destroy(&mtx); in badguy()
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_mutex_test.cc | 27 explicit TestData(MutexType *mtx) in TestData() argument 28 : mtx_(mtx) { in TestData() 98 static void check_locked(MutexType *mtx) { in check_locked() argument 99 GenericScopedLock<MutexType> l(mtx); in check_locked() 100 mtx->CheckLocked(); in check_locked() 104 SpinMutex mtx; in TEST() local 105 mtx.Init(); in TEST() 106 TestData<SpinMutex> data(&mtx); in TEST() 115 SpinMutex mtx; in TEST() local 116 mtx.Init(); in TEST() [all …]
|
/external/jemalloc/test/unit/ |
D | mtx.c | 8 mtx_t mtx; in TEST_BEGIN() local 10 assert_false(mtx_init(&mtx), "Unexpected mtx_init() failure"); in TEST_BEGIN() 11 mtx_lock(&mtx); in TEST_BEGIN() 12 mtx_unlock(&mtx); in TEST_BEGIN() 13 mtx_fini(&mtx); in TEST_BEGIN() 18 mtx_t mtx; member 29 mtx_lock(&arg->mtx); in thd_start() 31 mtx_unlock(&arg->mtx); in thd_start() 42 assert_false(mtx_init(&arg.mtx), "Unexpected mtx_init() failure"); in TEST_BEGIN()
|
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
D | ptw32_mutex_check_need_init.c | 52 register pthread_mutex_t mtx; in ptw32_mutex_check_need_init() local 65 mtx = *mutex; in ptw32_mutex_check_need_init() 67 if (mtx == PTHREAD_MUTEX_INITIALIZER) in ptw32_mutex_check_need_init() 71 else if (mtx == PTHREAD_RECURSIVE_MUTEX_INITIALIZER) in ptw32_mutex_check_need_init() 75 else if (mtx == PTHREAD_ERRORCHECK_MUTEX_INITIALIZER) in ptw32_mutex_check_need_init() 79 else if (mtx == NULL) in ptw32_mutex_check_need_init()
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
D | tsan_posix.cc | 20 pthread_mutex_t *mtx; member 23 thread_key(pthread_key_t key, pthread_mutex_t *mtx, int val, int *cnt) in thread_key() 25 , mtx(mtx) in thread_key() 33 EXPECT_EQ(pthread_mutex_lock(k->mtx), 0); in thread_secific_dtor() 36 EXPECT_EQ(pthread_mutex_unlock(k->mtx), 0); in thread_secific_dtor() 57 pthread_mutex_t mtx; in TEST() local 58 EXPECT_EQ(pthread_mutex_init(&mtx, 0), 0); in TEST() 61 k[0] = new thread_key(key, &mtx, 42, &cnt); in TEST() 62 k[1] = new thread_key(key, &mtx, 43, &cnt); in TEST() 63 k[2] = new thread_key(key, &mtx, 44, &cnt); in TEST()
|
/external/compiler-rt/lib/tsan/tests/unit/ |
D | tsan_mutex_test.cc | 25 explicit TestData(MutexType *mtx) in TestData() argument 26 : mtx_(mtx) { in TestData() 97 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations); in TEST() local 98 TestData<Mutex> data(&mtx); in TEST() 107 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations); in TEST() local 108 TestData<Mutex> data(&mtx); in TEST() 117 SpinMutex mtx; in TEST() local 118 TestData<SpinMutex> data(&mtx); in TEST()
|
D | tsan_sync_test.cc | 61 s1->mtx.Unlock(); in TEST() 65 s2->mtx.ReadUnlock(); in TEST() 82 s1->mtx.Unlock(); in TEST() 84 s2->mtx.Unlock(); in TEST() 103 s1->mtx.Unlock(); in TEST() 107 s2->mtx.Unlock(); in TEST() 118 s->mtx.Unlock(); in TEST()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_deadlock_detector2.cc | 78 StaticSpinMutex mtx; member 102 void CycleCheck(DDPhysicalThread *pt, DDLogicalThread *lt, DDMutex *mtx); 112 SpinMutex mtx; member 177 SpinMutexLock l(&mtx); in allocateId() 224 Mutex *mtx = getMutex(m->id); in MutexBeforeLock() local 229 SpinMutexLock l(&mtx1->mtx); in MutexBeforeLock() 238 if (link->seq != mtx->seq) { in MutexBeforeLock() 239 link->seq = mtx->seq; in MutexBeforeLock() 254 link->seq = mtx->seq; in MutexBeforeLock() 264 if (!added || mtx->nlink == 0) { in MutexBeforeLock() [all …]
|
D | sanitizer_addrhashmap.h | 60 RWMutex mtx; member 185 b->mtx.ReadLock(); in acquire() 196 b->mtx.ReadUnlock(); in acquire() 202 b->mtx.Lock(); in acquire() 211 b->mtx.Unlock(); in acquire() 228 b->mtx.Unlock(); in acquire() 236 b->mtx.Unlock(); in acquire() 296 b->mtx.Unlock(); in release() 325 b->mtx.Unlock(); in release() 329 b->mtx.ReadUnlock(); in release()
|
/external/jemalloc/test/include/test/ |
D | mtx.h | 18 bool mtx_init(mtx_t *mtx); 19 void mtx_fini(mtx_t *mtx); 20 void mtx_lock(mtx_t *mtx); 21 void mtx_unlock(mtx_t *mtx);
|
/external/jemalloc/include/jemalloc/internal/ |
D | mb.h | 105 malloc_mutex_t mtx; in mb_write() local 107 malloc_mutex_init(&mtx); in mb_write() 108 malloc_mutex_lock(&mtx); in mb_write() 109 malloc_mutex_unlock(&mtx); in mb_write()
|
/external/chromium_org/content/common/gpu/ |
D | stream_texture_android.cc | 141 float mtx[16]; in WillUseTexImage() local 142 surface_texture_->GetTransformMatrix(mtx); in WillUseTexImage() 145 if (memcmp(current_matrix_, mtx, sizeof(mtx)) != 0) { in WillUseTexImage() 146 memcpy(current_matrix_, mtx, sizeof(mtx)); in WillUseTexImage() 149 memcpy(¶ms.m00, mtx, sizeof(mtx)); in WillUseTexImage()
|
/external/llvm/include/llvm/Support/ |
D | Mutex.h | 139 SmartMutex<mt_only>& mtx; variable 142 SmartScopedLock(SmartMutex<mt_only>& m) : mtx(m) { in SmartScopedLock() 143 mtx.acquire(); in SmartScopedLock() 147 mtx.release(); in ~SmartScopedLock()
|
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/ |
D | cmserr.c | 598 void defMtxDestroy(cmsContext id, void* mtx) in defMtxDestroy() argument 600 _cmsDestroyMutexPrimitive((_cmsMutex *) mtx); in defMtxDestroy() 601 _cmsFree(id, mtx); in defMtxDestroy() 605 cmsBool defMtxLock(cmsContext id, void* mtx) in defMtxLock() argument 608 return _cmsLockPrimitive((_cmsMutex *) mtx) == 0; in defMtxLock() 612 void defMtxUnlock(cmsContext id, void* mtx) in defMtxUnlock() argument 615 _cmsUnlockPrimitive((_cmsMutex *) mtx); in defMtxUnlock() 680 void CMSEXPORT _cmsDestroyMutex(cmsContext ContextID, void* mtx) in _cmsDestroyMutex() argument 686 ptr ->DestroyMutexPtr(ContextID, mtx); in _cmsDestroyMutex() 690 cmsBool CMSEXPORT _cmsLockMutex(cmsContext ContextID, void* mtx) in _cmsLockMutex() argument [all …]
|