10 Commits

Author SHA1 Message Date
Brent Cook
90f1c4db5c fix leak in Windows version of pthread_mutex_free
Free the lock pointer in addition to the critical section. Thanks to
martinkucera74 on github.
2021-02-28 10:04:51 -06:00
Brent Cook
527482b520 add win32 pthread_mutex_destroy implementation 2020-12-21 10:14:21 -06:00
Joel Sing
17c8816401 Make pthread_mutex static initialisation work on Windows.
This takes the dynamic initialisation code added to CRYPTO_lock() in e5081719
and applies it to the Window's pthread_mutex implementation. This allows for
PTHREAD_MUTEX_INITIALIZER to be used on Windows.

bcook has agreed to place this code in the public domain (as per the rest of
the code in pthread.h).
2020-09-20 02:09:35 +10:00
kinichiro
65b01cff7a Add PTHREAD_MUTEX_INITIALIZER 2020-09-13 21:56:34 +09:00
Brent Cook
a67ba9f4ad add pthread_mutex* windows compat for libtls 2019-04-11 07:29:45 -05:00
Brent Cook
387d2ae261 change windows compatibility stubs for pthread_t to be more like other OSes 2018-11-11 11:00:00 -06:00
Brent Cook
0e46c1e8ba add pthread_self/pthread_equal for win32 2018-03-18 10:36:51 -05:00
Brent Cook
4799f0d9be syntax updates 2018-03-14 12:58:48 -05:00
Brent Cook
cfdaa1185f prefer including windows.h over the internal header 2018-03-14 12:56:26 -05:00
Brent Cook
d5608b38af add pthread_once(3) implementation for Windows 2018-03-14 07:36:45 -05:00