MCPcopy Create free account
hub / github.com/acl-dev/acl / thread_once

Function thread_once

lib_fiber/c/src/common/pthread_patch.c:201–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201static void thread_once(void)
202{
203 __tls_key = TlsAlloc();
204 __fls_key = FlsAlloc(thread_exit);
205 __pkeys = (PROC_KEYS *) mem_calloc(1, sizeof(PROC_KEYS));
206 __pkeys->keys = htable_create(10);
207 pthread_mutex_init(&__lock, NULL);
208}
209
210void pthread_fkey_create(void)
211{

Callers

nothing calls this directly

Calls 3

mem_callocFunction · 0.85
pthread_mutex_initFunction · 0.85
htable_createFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…