| 50 | void (*func_with_arg)(void*), void* arg); |
| 51 | |
| 52 | inline 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. |
no test coverage detected