mirror of
https://github.com/simple64/simple64.git
synced 2026-11-03 15:20:40 +01:00
Merge commit '0ff4aed2cba11a3828f50e425bde19b5d0cd94fa' as 'parallel-rdp-standalone'
This commit is contained in:
commit
a00bb7e027
179 files changed
+113445
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user