MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / init

Function init

src/UtilsCtrl/ThreadPool/Thread/UThreadPrimary.h:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28 CStatus init() override {
29 CGRAPH_FUNCTION_BEGIN
30 CGRAPH_ASSERT_INIT(false)
31 CGRAPH_ASSERT_NOT_NULL(config_)
32
33 is_init_ = true;
34 buildStealTargets();
35 thread_ = std::thread(&UThreadPrimary::run, this);
36 setSchedParam();
37 setAffinity(index_);
38 CGRAPH_FUNCTION_END
39 }
40
41
42 /**

Callers

nothing calls this directly

Calls 4

CGRAPH_ASSERT_NOT_NULLFunction · 0.85
buildStealTargetsFunction · 0.85
setSchedParamFunction · 0.85
setAffinityFunction · 0.85

Tested by

no test coverage detected