projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
report that posix_spawn is supported in unistd.h and sysconf
[musl]
/
src
/
thread
/
pthread_cond_signal.c
diff --git
a/src/thread/pthread_cond_signal.c
b/src/thread/pthread_cond_signal.c
index
0dd9416
..
71bcdcd
100644
(file)
--- a/
src/thread/pthread_cond_signal.c
+++ b/
src/thread/pthread_cond_signal.c
@@
-2,7
+2,8
@@
int pthread_cond_signal(pthread_cond_t *c)
{
int pthread_cond_signal(pthread_cond_t *c)
{
- c->__block = 0;
- __wake(&c->__block, 1, 0);
+ if (!c->_c_waiters) return 0;
+ a_inc(&c->_c_seq);
+ if (c->_c_waiters) __wake(&c->_c_seq, 1, 0);
return 0;
}
return 0;
}