MCPcopy Create free account
hub / github.com/apache/brpc / bthread_once

Function bthread_once

src/bthread/bthread_once.cpp:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73} // namespace bthread
74
75__BEGIN_DECLS
76
77int bthread_once(bthread_once_t* once_control, void (*init_routine)()) {
78 return bthread::bthread_once_impl(once_control, init_routine);
79}
80
81__END_DECLS

Callers 2

bthread_once_taskFunction · 0.85
get_leaky_singletonFunction · 0.85

Calls 1

bthread_once_implFunction · 0.85

Tested by 1

bthread_once_taskFunction · 0.68