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

Function SystemThreadFactory

util/thread/factory.cpp:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81static IThreadFactory* systemPool = nullptr;
82
83IThreadFactory* SystemThreadFactory() {
84 if (systemPool) {
85 return systemPool;
86 }
87
88 return SystemThreadPoolImpl();
89}
90
91void SetSystemThreadFactory(IThreadFactory* pool) {
92 systemPool = pool;

Callers 15

MakeThreadPoolMethod · 0.85
TThreadedResolverMethod · 0.85
TNehRequesterMethod · 0.85
TNetlibaRequesterMethod · 0.85
TRemoteQueryProcessorMethod · 0.85
THttpConnManagerMethod · 0.85
LoopMethod · 0.85
TLoopFuncMethod · 0.85
TConnCacheMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
TExecThreadMethod · 0.85

Calls 1

SystemThreadPoolImplFunction · 0.85

Tested by 1

TestSystemPoolMethod · 0.68