Skip to content

Commit

Permalink
restore pthread_self() on Windows, used in openssl implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Jan 19, 2019
1 parent 80bdd39 commit d803ec8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/ma_pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit d803ec8

Please sign in to comment.