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

Function pthread_once

lib_fiber/c/src/common/pthread_patch.c:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31int pthread_once(pthread_once_t* once_control, void (*init_routine)(void))
32{
33 OnceWrapper wrapper;
34 wrapper.init_routine = init_routine;
35
36 BOOL ok = InitOnceExecuteOnce(
37 once_control,
38 InitOnceCallback,
39 &wrapper,
40 NULL);
41
42 return ok ? 0 : -1;
43}
44
45int pthread_key_create(pthread_key_t* key, void (*destructor)(void*))
46{

Callers 15

winapi_hookFunction · 0.85
fiber_io.cFile · 0.85
fiber_checkFunction · 0.85
resolver_init_onceFunction · 0.85
kqueue_allocFunction · 0.85
epoll_allocFunction · 0.85
hook_onceFunction · 0.85
tls_callocFunction · 0.85
acl_fiber_gettimeofdayFunction · 0.85
hook_initFunction · 0.85
last_serrorFunction · 0.85
pthread_fkey_createFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…