mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 22:38:30 +00:00
Add unit test for process shared conditions
This commit is contained in:
parent
61c36c1dd6
commit
6e809ee49b
2 changed files with 94 additions and 1 deletions
|
@ -32,7 +32,7 @@ errno_t pthread_cond_destroy(pthread_cond_t *cond) {
|
|||
|
||||
// check if there's active waiters
|
||||
#if PTHREAD_USE_NSYNC
|
||||
if (cond->_pshared) {
|
||||
if (!cond->_pshared) {
|
||||
if (((nsync_cv *)cond)->waiters)
|
||||
return EINVAL;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue