diff options
author | Brent Cook <busterb@gmail.com> | 2020-12-21 09:39:12 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2020-12-21 10:14:21 -0600 |
commit | 527482b520283dbe1a831a243dff4e2227958ed8 (patch) | |
tree | 9654994fc7b1b47dd4709613f421ecc09a2fe477 | |
parent | 69968ab38e0a03a66e96a4d48d51cc74a5c64473 (diff) | |
download | portable-527482b520283dbe1a831a243dff4e2227958ed8.tar.gz portable-527482b520283dbe1a831a243dff4e2227958ed8.tar.bz2 portable-527482b520283dbe1a831a243dff4e2227958ed8.zip |
add win32 pthread_mutex_destroy implementation
-rwxr-xr-x | include/compat/pthread.h | 7 |
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 | ||
105 | static inline int | ||
106 | pthread_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 |