projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pthread and synccall cleanup, new __synccall_wait op
[musl]
/
src
/
thread
/
pthread_cond_broadcast.c
diff --git
a/src/thread/pthread_cond_broadcast.c
b/src/thread/pthread_cond_broadcast.c
index
7a023b8
..
30f7f6d
100644
(file)
--- a/
src/thread/pthread_cond_broadcast.c
+++ b/
src/thread/pthread_cond_broadcast.c
@@
-2,7
+2,7
@@
int pthread_cond_broadcast(pthread_cond_t *c)
{
- c->__block = 0;
-
__wake(&c->_
_block, -1, 0);
+ if (a_swap(&c->_c_block, 0))
+
__wake(&c->_c
_block, -1, 0);
return 0;
}