built and tested - pass

This commit is contained in:
Pete Baker committed 2015-03-19 13:09:36 -07:00
1 parent beb5be9ffa
commit 0c5f78a223
3 files changed
+35

No files matched your search

+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);
}
+10
View File
@@ -0,0 +1,10 @@
#pragma once
#include "pal.h"
PAL_BEGIN_EXTERNC
HANDLE GetCurrentThreadId();
PAL_END_EXTERNC