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

Method makeThread

include/ableton/platforms/linux/ThreadFactory.hpp:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected