add win32 pthread_mutex_destroy implementation

This commit is contained in:
Brent Cook 2020-12-21 09:39:12 -06:00
parent 69968ab38e
commit 527482b520

View File

@ -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 <pthread.h>
#endif