mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Add futexes for OpenBSD
This commit is contained in:
parent
1216b6e7c7
commit
b8e9f71d33
4 changed files with 46 additions and 8 deletions
|
@ -121,7 +121,7 @@ int pthread_rwlock_unlock(pthread_rwlock_t *);
|
|||
#define pthread_mutex_unlock(mutex) \
|
||||
((mutex)->attr == PTHREAD_MUTEX_NORMAL \
|
||||
? (atomic_store_explicit(&(mutex)->lock, 0, memory_order_relaxed), \
|
||||
(IsLinux() && \
|
||||
((IsLinux() || IsOpenbsd()) && \
|
||||
atomic_load_explicit(&(mutex)->waits, memory_order_relaxed) && \
|
||||
_pthread_mutex_wake(mutex)), \
|
||||
0) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue