Files
kaizen/external/parallel-rdp-standalone/util/thread_name.cpp
CocoSimone ac0f3ffd8c imgui
2022-07-11 00:53:03 +02:00

18 lines
252 B
C++

#include "thread_name.hpp"
#ifdef __linux__
#include <pthread.h>
#endif
namespace Util
{
void set_current_thread_name(const char *name)
{
#ifdef __linux__
pthread_setname_np(pthread_self(), name);
#else
// TODO: Kinda messy.
(void)name;
#endif
}
}