MCPcopy Create free account
hub / github.com/catboost/catboost / TAtForkManager

Method TAtForkManager

library/cpp/yt/threading/at_fork.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 std::atomic<int> AtForkHandlerCount_ = 0;
62
63 TAtForkManager()
64 {
65#ifdef _unix_
66 pthread_atfork(
67 [] { Get()->OnPrepare(); },
68 [] { Get()->OnParent(); },
69 [] { Get()->OnChild(); });
70#endif
71 }
72
73 void OnPrepare()
74 {

Callers

nothing calls this directly

Calls 4

OnPrepareMethod · 0.80
OnParentMethod · 0.80
OnChildMethod · 0.80
GetFunction · 0.50

Tested by

no test coverage detected