Add unit test for process shared conditions

This commit is contained in:
Justine Tunney 2024-07-22 18:48:54 -07:00
parent 61c36c1dd6
commit 6e809ee49b
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 94 additions and 1 deletions

View file

@ -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 {