Lines Matching refs:thr
19 static __thread Thread *thr; variable
29 if (thr != 0) in InitThread()
36 thr = (Thread*)InternalAlloc(sizeof(*thr)); in InitThread()
37 internal_memset(thr, 0, sizeof(*thr)); in InitThread()
38 ThreadInit(thr); in InitThread()
45 MutexDestroy(thr, (uptr)m); in INTERCEPTOR()
51 MutexBeforeLock(thr, (uptr)m, true); in INTERCEPTOR()
53 MutexAfterLock(thr, (uptr)m, true, false); in INTERCEPTOR()
61 MutexAfterLock(thr, (uptr)m, true, true); in INTERCEPTOR()
67 MutexBeforeUnlock(thr, (uptr)m, true); in INTERCEPTOR()
74 MutexDestroy(thr, (uptr)m); in INTERCEPTOR()
80 MutexBeforeLock(thr, (uptr)m, true); in INTERCEPTOR()
82 MutexAfterLock(thr, (uptr)m, true, false); in INTERCEPTOR()
90 MutexAfterLock(thr, (uptr)m, true, true); in INTERCEPTOR()
96 MutexBeforeUnlock(thr, (uptr)m, true); in INTERCEPTOR()
102 MutexDestroy(thr, (uptr)m); in INTERCEPTOR()
108 MutexBeforeLock(thr, (uptr)m, false); in INTERCEPTOR()
110 MutexAfterLock(thr, (uptr)m, false, false); in INTERCEPTOR()
118 MutexAfterLock(thr, (uptr)m, false, true); in INTERCEPTOR()
127 MutexAfterLock(thr, (uptr)m, false, true); in INTERCEPTOR()
133 MutexBeforeLock(thr, (uptr)m, true); in INTERCEPTOR()
135 MutexAfterLock(thr, (uptr)m, true, false); in INTERCEPTOR()
143 MutexAfterLock(thr, (uptr)m, true, true); in INTERCEPTOR()
152 MutexAfterLock(thr, (uptr)m, true, true); in INTERCEPTOR()
158 MutexBeforeUnlock(thr, (uptr)m, true); // note: not necessary write unlock in INTERCEPTOR()
186 MutexBeforeUnlock(thr, (uptr)m, true); in INTERCEPTOR()
187 MutexBeforeLock(thr, (uptr)m, true); in INTERCEPTOR()
189 MutexAfterLock(thr, (uptr)m, true, false); in INTERCEPTOR()
197 MutexBeforeUnlock(thr, (uptr)m, true); in INTERCEPTOR()
198 MutexBeforeLock(thr, (uptr)m, true); in INTERCEPTOR()
200 MutexAfterLock(thr, (uptr)m, true, false); in INTERCEPTOR()
245 MutexBeforeLock(thr, m, writelock); in __dsan_before_mutex_lock()
251 MutexAfterLock(thr, m, writelock, trylock); in __dsan_after_mutex_lock()
257 MutexBeforeUnlock(thr, m, writelock); in __dsan_before_mutex_unlock()
265 MutexDestroy(thr, m); in __dsan_mutex_destroy()