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

Function thread_init

lib_fiber/c/src/hook/kqueue.c:208–214  ·  view source on GitHub ↗

Initialize pthread key for per-thread cleanup.

Source from the content-addressed store, hash-verified

206
207// Initialize pthread key for per-thread cleanup.
208static void thread_init(void)
209{
210 if (pthread_key_create(&__once_key, thread_free) != 0) {
211 msg_fatal("%s(%d), %s: pthread_key_create error %s",
212 __FILE__, __LINE__, __FUNCTION__, last_serror());
213 }
214}
215
216// Create one KQUEUE for the specified kqfd.
217// Allocate and initialize a KQUEUE object for a kqueue fd.

Callers

nothing calls this directly

Calls 3

pthread_key_createFunction · 0.85
msg_fatalFunction · 0.85
last_serrorFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…