线程函数
| 34 | private: |
| 35 | // 线程函数 |
| 36 | inline static void* run_function(void* args) noexcept { |
| 37 | auto function = reinterpret_cast<MoveOnlyFunction<void(void)>*>(args); |
| 38 | (*function)(); |
| 39 | delete function; |
| 40 | return nullptr; |
| 41 | } |
| 42 | }; |
| 43 | |
| 44 | // 使用bthread线程池的async |
nothing calls this directly
no outgoing calls
no test coverage detected