aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2020-12-21 09:39:12 -0600
committerBrent Cook <busterb@gmail.com>2020-12-21 10:14:21 -0600
commit527482b520283dbe1a831a243dff4e2227958ed8 (patch)
tree9654994fc7b1b47dd4709613f421ecc09a2fe477 /include
parent69968ab38e0a03a66e96a4d48d51cc74a5c64473 (diff)
downloadportable-527482b520283dbe1a831a243dff4e2227958ed8.tar.gz
portable-527482b520283dbe1a831a243dff4e2227958ed8.tar.bz2
portable-527482b520283dbe1a831a243dff4e2227958ed8.zip
add win32 pthread_mutex_destroy implementation
Diffstat (limited to 'include')
-rwxr-xr-xinclude/compat/pthread.h7
1 files changed, 7 insertions, 0 deletions
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)
102 return 0; 102 return 0;
103} 103}
104 104
105static inline int
106pthread_mutex_destroy(pthread_mutex_t *mutex)
107{
108 DeleteCriticalSection(mutex->lock);
109 return 0;
110}
111
105#else 112#else
106#include_next <pthread.h> 113#include_next <pthread.h>
107#endif 114#endif