Squashed 'parallel-rdp-standalone/' content from commit 773181a

git-subtree-dir: parallel-rdp-standalone
git-subtree-split: 773181ae2b1329a3bb8498364e61ec8aa7694fdd
This commit is contained in:
Logan McNaughton committed 2021-06-04 22:37:51 -06:00
commit 0ff4aed2cb
179 files changed
+113445

No files matched your search

+18
View File
@@ -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
}
}