Lines Matching refs:emutls_mutex
52 static pthread_mutex_t emutls_mutex = PTHREAD_MUTEX_INITIALIZER; variable
128 static __inline void emutls_lock() { pthread_mutex_lock(&emutls_mutex); } in emutls_lock()
130 static __inline void emutls_unlock() { pthread_mutex_unlock(&emutls_mutex); } in emutls_unlock()
139 static LPCRITICAL_SECTION emutls_mutex; variable
173 if (emutls_mutex) { in emutls_exit()
174 DeleteCriticalSection(emutls_mutex); in emutls_exit()
175 _aligned_free(emutls_mutex); in emutls_exit()
176 emutls_mutex = NULL; in emutls_exit()
189 emutls_mutex = in emutls_init()
191 if (!emutls_mutex) { in emutls_init()
195 InitializeCriticalSection(emutls_mutex); in emutls_init()
212 static __inline void emutls_lock() { EnterCriticalSection(emutls_mutex); } in emutls_lock()
214 static __inline void emutls_unlock() { LeaveCriticalSection(emutls_mutex); } in emutls_unlock()