MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __tl_sync

Function __tl_sync

system/lib/pthread/pthread_create.c:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void __tl_sync(pthread_t td)
93{
94 a_barrier();
95 int val = __thread_list_lock;
96 if (!val) return;
97 __wait(&__thread_list_lock, &tl_lock_waiters, val, 0);
98 if (tl_lock_waiters) __wake(&__thread_list_lock, 1, 0);
99}
100
101/* pthread_key_create.c overrides this */
102static volatile size_t dummy = 0;

Callers

nothing calls this directly

Calls 3

a_barrierFunction · 0.85
__wakeFunction · 0.85
__waitFunction · 0.70

Tested by

no test coverage detected