

Void SetThreadName(std::thread* thread, const char* threadName) Void SetThreadName( std::thread* thread, const char* threadName)ĭWORD threadId = ::GetThreadId( static_cast( thread->native_handle() ) ) SetThreadName(GetCurrentThreadId(),threadName) Void SetThreadName( const char* threadName) RaiseException( MS_VC_EXCEPTION, 0, sizeof(info)/sizeof(ULONG_PTR), (ULONG_PTR*)&info ) DWORD dwThreadID = ::GetThreadId( static_cast( t.native_handle() ) )

Void SetThreadName(uint32_t dwThreadID, const char* threadName) LPCSTR szName // Pointer to name (in user addr space).ĭWORD dwThreadID // Thread ID (-1=caller thread).ĭWORD dwFlags // Reserved for future use, must be zero.

An attempt at making a wrapper to deal with many Linuxes as well as Windows.
