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

Function main

tutorial.cpp:125–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125int main() {
126 auto pool = std::make_unique<UThreadPool>(); // 构造一个线程池类的智能指针
127 CGRAPH_ECHO("======== tutorial_threadpool_1 begin. ========");
128 tutorial_threadpool_1(pool.get());
129
130 CGRAPH_ECHO("======== tutorial_threadpool_2 begin. ========");
131 tutorial_threadpool_2(pool.get());
132
133 CGRAPH_ECHO("======== tutorial_threadpool_3 begin. ========");
134 tutorial_threadpool_3(pool.get());
135 return 0;
136}

Callers

nothing calls this directly

Calls 4

CGRAPH_ECHOFunction · 0.85
tutorial_threadpool_1Function · 0.85
tutorial_threadpool_2Function · 0.85
tutorial_threadpool_3Function · 0.85

Tested by

no test coverage detected