Searched refs:thread_state_key (Results 1 – 2 of 2) sorted by relevance
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_platform_mac.cpp | 52 static pthread_key_t thread_state_key; variable 65 int res = pthread_setspecific(thread_state_key, thr); in ThreadStateDestructor() 71 CHECK_EQ(thread_state_key, 0); in InitializeThreadStateStorage() 72 res = pthread_key_create(&thread_state_key, ThreadStateDestructor); in InitializeThreadStateStorage() 74 res = pthread_setspecific(thread_state_key, main_thread_state); in InitializeThreadStateStorage() 90 if (UNLIKELY(!thread_state_key)) { in cur_thread() 96 ThreadState *thr = (ThreadState *)pthread_getspecific(thread_state_key); in cur_thread() 99 int res = pthread_setspecific(thread_state_key, thr); in cur_thread() 106 int res = pthread_setspecific(thread_state_key, thr); in set_cur_thread() 111 ThreadState *thr = (ThreadState *)pthread_getspecific(thread_state_key); in cur_thread_finalize() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_platform_mac.cpp | 52 static pthread_key_t thread_state_key; variable 65 int res = pthread_setspecific(thread_state_key, thr); in ThreadStateDestructor() 71 CHECK_EQ(thread_state_key, 0); in InitializeThreadStateStorage() 72 res = pthread_key_create(&thread_state_key, ThreadStateDestructor); in InitializeThreadStateStorage() 74 res = pthread_setspecific(thread_state_key, main_thread_state); in InitializeThreadStateStorage() 90 if (UNLIKELY(!thread_state_key)) { in cur_thread() 96 ThreadState *thr = (ThreadState *)pthread_getspecific(thread_state_key); in cur_thread() 99 int res = pthread_setspecific(thread_state_key, thr); in cur_thread() 106 int res = pthread_setspecific(thread_state_key, thr); in set_cur_thread() 111 ThreadState *thr = (ThreadState *)pthread_getspecific(thread_state_key); in cur_thread_finalize() [all …]
|