MCPcopy Create free account
hub / github.com/eggert/tz / once

Function once

localtime.c:157–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155#endif
156
157static void
158once(once_t *once_control, void init_routine(void))
159{
160#if THREAD_SAFE
161 pthread_once(once_control, init_routine);
162#else
163 if (!*once_control) {
164 *once_control = true;
165 init_routine();
166 }
167#endif
168}
169
170enum tm_multi { LOCALTIME_TM_MULTI, GMTIME_TM_MULTI, OFFTIME_TM_MULTI };
171

Callers 1

gmtcheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected