projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix namespace violation in sys/shm.h
[musl]
/
src
/
thread
/
pthread_cond_broadcast.c
diff --git
a/src/thread/pthread_cond_broadcast.c
b/src/thread/pthread_cond_broadcast.c
index
bf6de04
..
848e288
100644
(file)
--- a/
src/thread/pthread_cond_broadcast.c
+++ b/
src/thread/pthread_cond_broadcast.c
@@
-22,8
+22,8
@@
int pthread_cond_broadcast(pthread_cond_t *c)
m = c->_c_mutex;
/* Move waiter count to the mutex */
m = c->_c_mutex;
/* Move waiter count to the mutex */
- a_fetch_add(&m->_m_waiters, c->_c_waiters);
-
a_store(&c->_c_waiters, 0)
;
+ a_fetch_add(&m->_m_waiters, c->_c_waiters
2
);
+
c->_c_waiters2 = 0
;
/* Perform the futex requeue, waking one waiter unless we know
* that the calling thread holds the mutex. */
/* Perform the futex requeue, waking one waiter unless we know
* that the calling thread holds the mutex. */