| 116 | { |
| 117 | template <typename Callable, typename... Args> |
| 118 | static std::thread makeThread(std::string name, Callable&& f, Args&&... args) |
| 119 | { |
| 120 | return std::thread{[](std::string name, Callable&& f, Args&&... args) |
| 121 | { |
| 122 | pthread_setname_np(name.c_str()); |
| 123 | f(args...); |
| 124 | }, |
| 125 | std::move(name), |
| 126 | std::forward<Callable>(f), |
| 127 | std::forward<Args>(args)...}; |
| 128 | } |
| 129 | }; |
| 130 | |
| 131 | } // namespace darwin |
nothing calls this directly
no outgoing calls
no test coverage detected