You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
restore pthread_self() on Windows, used in openssl implementation
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user