diff --git a/include/ma_pthread.h b/include/ma_pthread.h index 63cc6467..c01242fc 100644 --- a/include/ma_pthread.h +++ b/include/ma_pthread.h @@ -28,6 +28,7 @@ typedef CRITICAL_SECTION pthread_mutex_t; #define pthread_mutex_lock(A) (EnterCriticalSection(A),0) #define pthread_mutex_unlock(A) LeaveCriticalSection(A) #define pthread_mutex_destroy(A) DeleteCriticalSection(A) +#define pthread_self() GetCurrentThreadId() #endif /* defined(_WIN32) */ #endif /* _my_ptread_h */