Core/Thread: Add posibility of setting thread name

This commit is contained in:
Lynix
2017-06-20 08:16:08 +02:00
parent 4a1a335cee
commit 50a3f78f91
6 changed files with 128 additions and 13 deletions

View File

@@ -8,6 +8,11 @@
#define NAZARA_THREADIMPL_HPP
#include <Nazara/Prerequesites.hpp>
#ifdef __GNUC__
#define _GNU_SOURCE
#endif
#include <pthread.h>
namespace Nz
@@ -21,7 +26,9 @@ namespace Nz
void Detach();
void Join();
void SetName(const Nz::String& name);
static void SetCurrentName(const Nz::String& name);
static void Sleep(UInt32 time);
private: