1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

restore pthread_self() on Windows, used in openssl implementation

This commit is contained in:
Vladislav Vaintroub
2019-01-19 01:20:14 +01:00
parent 80bdd39e31
commit d803ec8416

View File

@@ -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 */