MCPcopy Create free account
hub / github.com/apache/impala / GoogleOnceInit

Function GoogleOnceInit

be/src/gutil/once.h:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 void (*func_with_arg)(void*), void* arg);
51
52inline void GoogleOnceInit(GoogleOnceType* state, void (*func)()) {
53 Atomic32 s = Acquire_Load(&state->state);
54 if (PREDICT_FALSE(s != GOOGLE_ONCE_INTERNAL_DONE)) {
55 GoogleOnceInternalInit(&state->state, func, 0, 0);
56 }
57 ANNOTATE_HAPPENS_AFTER(&state->state);
58}
59
60// A version of GoogleOnceInit where the function argument takes a pointer
61// of arbitrary type.

Callers 15

DoMaybeFaultFunction · 0.85
DoInjectRandomLatencyFunction · 0.85
DoMaybeTrueFunction · 0.85
StartThreadMethod · 0.85
GetRootTrackerMethod · 0.85
AddDestructorFunction · 0.85
TriggerAsyncMethod · 0.85
CollectMethod · 0.85
InitLimitsFunction · 0.85
GetCrc32cInstanceFunction · 0.85

Calls 2

GoogleOnceInternalInitFunction · 0.85
Acquire_LoadFunction · 0.70

Tested by

no test coverage detected