| 73 | { |
| 74 | template <typename Callable, typename... Args> |
| 75 | static std::thread makeThread(std::string name, Callable&& f, Args&&... args) |
| 76 | { |
| 77 | auto thread = std::thread(std::forward<Callable>(f), std::forward<Args>(args)...); |
| 78 | pthread_setname_np(thread.native_handle(), name.c_str()); |
| 79 | return thread; |
| 80 | } |
| 81 | }; |
| 82 | |
| 83 | } // namespace linux_ |
nothing calls this directly
no outgoing calls
no test coverage detected