diff options
author | June McEnroe <june@causal.agency> | 2021-04-18 17:20:54 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-04-18 17:20:54 -0400 |
commit | be8eb3b67ce4718ca94287a68e0babc715afcd21 (patch) | |
tree | 5ca8bea74d0b5b03e7c6906fa9183b959d5c2b87 /include/compat/pthread.h | |
parent | Import LibreSSL 3.3.1 (diff) | |
download | libretls-be8eb3b67ce4718ca94287a68e0babc715afcd21.tar.gz libretls-be8eb3b67ce4718ca94287a68e0babc715afcd21.zip |
Import LibreSSL 3.3.2
Diffstat (limited to '')
-rwxr-xr-x | include/compat/pthread.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/compat/pthread.h b/include/compat/pthread.h index 1527d3c..1ab011c 100755 --- a/include/compat/pthread.h +++ b/include/compat/pthread.h @@ -102,6 +102,14 @@ pthread_mutex_unlock(pthread_mutex_t *mutex) return 0; } +static inline int +pthread_mutex_destroy(pthread_mutex_t *mutex) +{ + DeleteCriticalSection(mutex->lock); + free(mutex->lock); + return 0; +} + #else #include_next <pthread.h> #endif |