2 #include <ossia/detail/config.hpp>
4 #include <ossia/detail/flat_map.hpp>
12 void set_thread_realtime(std::thread& t,
int prio = 99,
bool algo_fifo =
true);
14 void set_thread_name(std::thread& t, std::string_view name);
16 void set_thread_name(std::string_view name);
18 void set_thread_pinned(
int cpu);
20 enum class thread_type : unsigned char
38 using thread_specs = ossia::flat_map<thread_type, thread_spec>;
41 const thread_specs& get_thread_specs() noexcept;
45 void set_thread_pinned(thread_type kind,
int thread_index);
48 std::
string get_exe_path();
51 std::
string get_module_path();