Searched refs:thread_state_key (Results 1 – 1 of 1) sorted by relevance
52 static pthread_key_t thread_state_key; variable65 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 …]