PowerShell/impl/getcurrentthreadid.cpp

10 lines
174 B
C++
Raw Normal View History

2015-03-19 21:09:36 +01:00
#include "getcurrentthreadid.h"
#include <unistd.h>
#include <pthread.h>
HANDLE GetCurrentThreadId()
{
pid_t tid = pthread_self();
return reinterpret_cast<HANDLE>(tid);
}