mirror of
https://github.com/simple64/simple64.git
synced 2026-11-02 12:45:31 +01:00
Squashed 'parallel-rdp-standalone/' content from commit 773181a
git-subtree-dir: parallel-rdp-standalone git-subtree-split: 773181ae2b1329a3bb8498364e61ec8aa7694fdd
This commit is contained in:
commit
0ff4aed2cb
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