From 527482b520283dbe1a831a243dff4e2227958ed8 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Mon, 21 Dec 2020 09:39:12 -0600 Subject: add win32 pthread_mutex_destroy implementation --- include/compat/pthread.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/compat/pthread.h b/include/compat/pthread.h index 1527d3c..223ad83 100755 --- a/include/compat/pthread.h +++ b/include/compat/pthread.h @@ -102,6 +102,13 @@ pthread_mutex_unlock(pthread_mutex_t *mutex) return 0; } +static inline int +pthread_mutex_destroy(pthread_mutex_t *mutex) +{ + DeleteCriticalSection(mutex->lock); + return 0; +} + #else #include_next #endif -- cgit v1.2.3-55-g6feb