Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
OnPrepare
Method · 0.80
OnParent
Method · 0.80
OnChild
Method · 0.80
Get
Function · 0.50
Tested by
no test coverage detected