Fixes of previous commit on Posix platforms

This commit is contained in:
Vojtech Bubnik
2020-10-22 14:29:40 +02:00
parent da9d9f9ceb
commit c10efd192c
2 changed files with 11 additions and 13 deletions

View File

@@ -2,6 +2,7 @@
#define GUI_THREAD_HPP
#include <utility>
#include <string>
#include <thread>
#include <boost/thread.hpp>
@@ -16,7 +17,7 @@ inline void set_thread_name(boost::thread &thread, const std::string &thread_nam
void set_current_thread_name(const char *thread_name);
inline void set_current_thread_name(const std::string &thread_name) { set_current_thread_name(thread_name.c_str()); }
void std::string get_current_thread_name() const;
std::string get_current_thread_name();
// To be called somewhere before the TBB threads are spinned for the first time, to
// give them names recognizible in the debugger.