MCPcopy Create free account
hub / github.com/Ableton/link / makeThread

Method makeThread

include/ableton/platforms/darwin/ThreadFactory.hpp:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected