Lines Matching defs:once
33 // emulates google3/base/once.h
46 // * A function GoogleOnceInit(ProtobufOnceType* once, void (*init_func)()).
65 // // Calls Init() exactly once.
93 inline void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)()) {
94 if (!*once) {
95 *once = true;
101 inline void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)(Arg),
103 if (!*once) {
104 *once = true;
122 void GoogleOnceInitImpl(ProtobufOnceType* once, Closure* closure);
124 inline void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)()) {
125 if (internal::Acquire_Load(once) != ONCE_STATE_DONE) {
127 GoogleOnceInitImpl(once, &func);
132 inline void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)(Arg*),
134 if (internal::Acquire_Load(once) != ONCE_STATE_DONE) {
136 GoogleOnceInitImpl(once, &func);