| 123 | |
| 124 | |
| 125 | int 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 | } |
nothing calls this directly
no test coverage detected