Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
77
int 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_task
Function · 0.85
get_leaky_singleton
Function · 0.85
Calls
1
bthread_once_impl
Function · 0.85
Tested by
1
bthread_once_task
Function · 0.68