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

Function once_init

lib_acl/src/stdlib/sys/acl_gettimeofday.c:72–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71static acl_pthread_key_t once_key;
72static void once_init(void)
73{
74 if ((unsigned long) acl_pthread_self() == acl_main_thread_self()) {
75 acl_pthread_key_create(&once_key, dummy);
76#ifndef HAVE_NO_ATEXIT
77 atexit(main_free_tls);
78#endif
79 } else
80 acl_pthread_key_create(&once_key, free_tls);
81}
82
83static acl_pthread_once_t once_control = ACL_PTHREAD_ONCE_INIT;
84static 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…