diff options
Diffstat (limited to 'osdep/win32/include/pthread.h')
-rw-r--r-- | osdep/win32/include/pthread.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/osdep/win32/include/pthread.h b/osdep/win32/include/pthread.h index 271cae0f0a..5157b8e342 100644 --- a/osdep/win32/include/pthread.h +++ b/osdep/win32/include/pthread.h @@ -28,7 +28,6 @@ #define pthread_mutex_unlock m_pthread_mutex_unlock #define pthread_cond_timedwait m_pthread_cond_timedwait #define pthread_cond_wait m_pthread_cond_wait -#define pthread_self m_pthread_self #define pthread_exit m_pthread_exit #define pthread_join m_pthread_join #define pthread_detach m_pthread_detach @@ -80,15 +79,11 @@ int pthread_cond_timedwait(pthread_cond_t *restrict cond, int pthread_cond_wait(pthread_cond_t *restrict cond, pthread_mutex_t *restrict mutex); -// Unusual, but allowed by POSIX. -typedef struct { - DWORD id; - struct m_thread_info *info; -} pthread_t; +#define pthread_t DWORD -#define pthread_equal(a, b) ((a).id == (b).id) +#define pthread_equal(a, b) ((a) == (b)) +#define pthread_self() (GetCurrentThreadId()) -pthread_t pthread_self(void); void pthread_exit(void *retval); int pthread_join(pthread_t thread, void **retval); int pthread_detach(pthread_t thread); |