Home
last modified time | relevance | path

Searched refs:mtx (Results 1 – 25 of 47) sorted by relevance

12

/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_mutex_test.cc24 explicit TestData(MutexType *mtx) in TestData() argument
25 : mtx_(mtx) { in TestData()
96 static void check_locked(MutexType *mtx) { in check_locked() argument
97 GenericScopedLock<MutexType> l(mtx); in check_locked()
98 mtx->CheckLocked(); in check_locked()
102 SpinMutex mtx; in TEST() local
103 mtx.Init(); in TEST()
104 TestData<SpinMutex> data(&mtx); in TEST()
113 SpinMutex mtx; in TEST() local
114 mtx.Init(); in TEST()
[all …]
/external/compiler-rt/lib/tsan/lit_tests/
Dfree_race.c12 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()
Dmutexset8.cc7 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()
Dmutexset1.cc7 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()
Dmutexset2.cc7 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()
Dmutexset7.cc16 pthread_mutex_t mtx; 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()
Dlongjmp3.cc20 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()
Dlongjmp4.cc23 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/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
Dptw32_mutex_check_need_init.c52 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/
Dtsan_posix.cc20 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/rtl/
Dtsan_sync.cc21 : mtx(MutexTypeSyncVar, StatMtxSyncVar) in SyncVar()
34 : mtx(MutexTypeSyncTab, StatMtxSyncTab) in Part()
99 res->mtx.Lock(); in GetAndLock()
101 res->mtx.ReadLock(); in GetAndLock()
108 ReadLock l(&p->mtx); in GetAndLock()
112 res->mtx.Lock(); in GetAndLock()
114 res->mtx.ReadLock(); in GetAndLock()
122 Lock l(&p->mtx); in GetAndLock()
134 res->mtx.Lock(); in GetAndLock()
136 res->mtx.ReadLock(); in GetAndLock()
[all …]
Dtsan_rtl_mutex.cc39 s->mtx.Unlock(); in MutexCreate()
113 s->mtx.Unlock(); in MutexLock()
152 s->mtx.Unlock(); in MutexUnlock()
174 s->mtx.ReadUnlock(); in MutexReadLock()
195 s->mtx.Unlock(); in MutexReadUnlock()
242 s->mtx.Unlock(); in MutexReadOrWriteUnlock()
252 s->mtx.ReadUnlock(); in Acquire()
277 s->mtx.Unlock(); in Release()
287 s->mtx.Unlock(); in ReleaseStore()
Dtsan_interface_java.cc31 Mutex mtx; member
35 : mtx(MutexTypeJavaMBlock, StatMtxJavaMBlock) in BlockDesc()
49 s->mtx.Lock(); in ~BlockDesc()
50 s->mtx.Unlock(); in ~BlockDesc()
128 Lock l(&b->mtx); in GetJavaSync()
144 s->mtx.Lock(); in GetJavaSync()
146 s->mtx.ReadLock(); in GetJavaSync()
Dtsan_trace.h64 Mutex mtx; member
67 : mtx(MutexTypeTrace, StatMtxTrace) { in Trace()
Dtsan_interface_ann.cc81 Mutex mtx; member
86 : mtx(MutexTypeAnnotations, StatMtxAnnotations) { in DynamicAnnContext()
156 Lock lock(&dyn_ann_ctx->mtx); in IsExpectedReport()
188 Lock lock(&dyn_ann_ctx->mtx); in PrintMatchedBenignRaces()
310 Lock lock(&dyn_ann_ctx->mtx); in AnnotateFlushExpectedRaces()
357 Lock lock(&dyn_ann_ctx->mtx); in AnnotateExpectRace()
365 Lock lock(&dyn_ann_ctx->mtx); in BenignRaceImpl()
Dtsan_sync.h57 Mutex mtx; member
105 Mutex mtx; member
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_mutex_test.cc25 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()
/external/chromium_org/content/common/gpu/
Dstream_texture_manager_android.cc34 float mtx[16]; in Update() local
35 surface_texture_->GetTransformMatrix(mtx); in Update()
38 if (has_updated_ && memcmp(current_matrix_, mtx, sizeof(mtx)) != 0) { in Update()
39 memcpy(current_matrix_, mtx, sizeof(mtx)); in Update()
42 memcpy(&params.m00, mtx, sizeof(mtx)); in Update()
/external/llvm/include/llvm/Support/
DMutex.h139 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/llvm/test/CodeGen/X86/
D2009-02-21-ExtWeakInitializer.ll9 %struct.mtx = type <{ %struct.lock_object, i64 }>
12 …, i32, i8, i8, i8, i8, i32 (%struct.uart_softc*)*, i32 (%struct.uart_softc*)*, i8*, %struct.mtx* }>
13 …void (%struct.uart_bas*, i32)*, i32 (%struct.uart_bas*)*, i32 (%struct.uart_bas*, %struct.mtx*)* }>
/external/sonivox/arm-wt-22k/jetcreator_lib_src/darwin-x86/
DEASLib.c122 pthread_mutex_t mtx; variable
350 pthread_mutex_lock(&mtx); in RenderProc()
362 pthread_mutex_unlock(&mtx); in RenderProc()
379 pthread_mutex_unlock(&mtx); in RenderProc()
409 pthread_mutex_lock(&mtx); in EAS_RenderWaveOut()
413 pthread_cond_wait(&cond, &mtx); in EAS_RenderWaveOut()
420 pthread_mutex_unlock(&mtx); in EAS_RenderWaveOut()
430 pthread_mutex_lock(&mtx); in EAS_RenderAuxMixerWaveOut()
434 pthread_cond_wait(&cond, &mtx); in EAS_RenderAuxMixerWaveOut()
440 pthread_mutex_unlock(&mtx); in EAS_RenderAuxMixerWaveOut()
[all …]
/external/valgrind/main/drd/
Ddrd.h171 #define ANNOTATE_CONDVAR_LOCK_WAIT(cv, mtx) do { } while(0) argument
198 #define ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX(mtx) do { } while(0) argument
201 #define ANNOTATE_MUTEX_IS_USED_AS_CONDVAR(mtx) do { } while(0) argument
/external/jmonkeyengine/engine/src/bullet-native/
Dcom_jme3_bullet_collision_shapes_CompoundCollisionShape.cpp74 btMatrix3x3 mtx = btMatrix3x3(); in Java_com_jme3_bullet_collision_shapes_CompoundCollisionShape_addChildShape() local
75 btTransform trans = btTransform(mtx); in Java_com_jme3_bullet_collision_shapes_CompoundCollisionShape_addChildShape()
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/
DPhysicsGhostObject.java194 Matrix3f mtx = new Matrix3f(); in getPhysicsRotationMatrix() local
195 getPhysicsRotationMatrix(objectId, mtx); in getPhysicsRotationMatrix()
196 return mtx; in getPhysicsRotationMatrix()
/external/chromium_org/ui/gl/android/
Dsurface_texture.cc55 void SurfaceTexture::GetTransformMatrix(float mtx[16]) { in GetTransformMatrix()
66 mtx[i] = static_cast<float>(elements[i]); in GetTransformMatrix()

12