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

Function once_init

lib_acl/src/stdlib/acl_meter_time.c:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40static acl_pthread_key_t once_key;
41static void once_init(void)
42{
43 if ((unsigned long) acl_pthread_self() == acl_main_thread_self()) {
44 acl_pthread_key_create(&once_key, dummy);
45#if !defined(HAVE_NO_ATEXIT)
46 atexit(main_free_tls);
47#endif
48 } else
49 acl_pthread_key_create(&once_key, free_tls);
50}
51
52static acl_pthread_once_t once_control = ACL_PTHREAD_ONCE_INIT;
53static void *tls_calloc(size_t len)

Callers

nothing calls this directly

Calls 3

acl_pthread_selfFunction · 0.85
acl_main_thread_selfFunction · 0.85
acl_pthread_key_createFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…