built and tested - pass

This commit is contained in:
Pete Baker
2015-03-19 13:09:36 -07:00
parent beb5be9ffa
commit 0c5f78a223
3 changed files with 35 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#include "getcurrentthreadid.h"
#include <unistd.h>
#include <pthread.h>
HANDLE GetCurrentThreadId()
{
pid_t tid = pthread_self();
return reinterpret_cast<HANDLE>(tid);
}