Files
PowerShell/native/getcurrentthreadid.cpp
T
2015-10-25 12:21:53 -07:00

10 lines
174 B
C++

#include "getcurrentthreadid.h"
#include <unistd.h>
#include <pthread.h>
HANDLE GetCurrentThreadId()
{
pid_t tid = pthread_self();
return reinterpret_cast<HANDLE>(tid);
}