MCPcopy Create free account
hub / github.com/apache/arrow / RegisterAtFork

Function RegisterAtFork

cpp/src/arrow/util/atfork_internal.cc:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}; // namespace
164
165void RegisterAtFork(std::weak_ptr<AtForkHandler> weak_handler) {
166 // Only fetch the atfork state (and thus lazily call pthread_atfork) if enabled at all,
167 // to minimize potential nastiness with fork and threads.
168 if (IsAtForkEnabled()) {
169 GetAtForkState()->RegisterAtFork(std::move(weak_handler));
170 }
171}
172
173} // namespace internal
174} // namespace arrow

Callers 4

InitMethod · 0.85
ThreadPoolMethod · 0.85
InitMethod · 0.85
TEST_FFunction · 0.85

Calls 3

IsAtForkEnabledFunction · 0.85
GetAtForkStateFunction · 0.85
RegisterAtForkMethod · 0.80

Tested by 1

TEST_FFunction · 0.68