Merge commit '0ff4aed2cba11a3828f50e425bde19b5d0cd94fa' as 'parallel-rdp-standalone'

This commit is contained in:
Logan McNaughton committed 2021-06-04 22:37:51 -06:00
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
}
}