MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / run_initializer

Function run_initializer

benchmarks/tbb/tbb_misc.h:231–234  ·  view source on GitHub ↗

Run the initializer which can not fail

Source from the content-addressed store, hash-verified

229
230// Run the initializer which can not fail
231inline void run_initializer( void (*f)(), atomic<do_once_state>& state ) {
232 f();
233 state = do_once_executed;
234}
235
236// Run the initializer which can require repeated call
237inline void run_initializer( bool (*f)(), atomic<do_once_state>& state ) {

Callers 1

atomic_do_onceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected