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

Function init

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

Source from the content-addressed store, hash-verified

23
24
25 CStatus init() override {
26 CGRAPH_FUNCTION_BEGIN
27 CGRAPH_ASSERT_INIT(false)
28
29 is_init_ = true;
30 thread_ = std::move(std::thread(&UThreadPrimary::run, this));
31 setSchedParam();
32 setAffinity(index_);
33 CGRAPH_FUNCTION_END
34 }
35
36
37 /**

Callers

nothing calls this directly

Calls 2

setSchedParamFunction · 0.85
setAffinityFunction · 0.85

Tested by

no test coverage detected