diff options
Diffstat (limited to 'libparc/parc/concurrent/parc_Thread.c')
-rw-r--r-- | libparc/parc/concurrent/parc_Thread.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libparc/parc/concurrent/parc_Thread.c b/libparc/parc/concurrent/parc_Thread.c index 50be042d..8004f672 100644 --- a/libparc/parc/concurrent/parc_Thread.c +++ b/libparc/parc/concurrent/parc_Thread.c @@ -210,7 +210,11 @@ parcThread_Cancel(PARCThread *thread) int parcThread_GetId(const PARCThread *thread) { - return (int) thread->thread; +#ifndef _WIN32 + return (int)thread->thread; +#else + return pthread_getw32threadid_np(thread->thread); +#endif } bool |