MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / init_once

Function init_once

third-party/libuv-1.46.0/src/threadpool.c:252–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250
251
252static void init_once(void) {
253#ifndef _WIN32
254 /* Re-initialize the threadpool after fork.
255 * Note that this discards the global mutex and condition as well
256 * as the work queue.
257 */
258 if (pthread_atfork(NULL, NULL, &reset_once))
259 abort();
260#endif
261 init_threads();
262}
263
264
265void uv__work_submit(uv_loop_t* loop,

Callers

nothing calls this directly

Calls 1

init_threadsFunction · 0.85

Tested by

no test coverage detected