diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-27 16:17:24 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-11 20:34:22 (GMT) |
commit | e5f459d86d7f566fb57c324305c7cb365ac5ad08 (patch) | |
tree | 21310131ca19d4d7715e594a9140e18c53ddeb2f /test | |
parent | 99034ad9ad405a57f606817cb7083e809915a28c (diff) | |
download | hdf5-e5f459d86d7f566fb57c324305c7cb365ac5ad08.zip hdf5-e5f459d86d7f566fb57c324305c7cb365ac5ad08.tar.gz hdf5-e5f459d86d7f566fb57c324305c7cb365ac5ad08.tar.bz2 |
Test the right condition for the EBUSY return in pthread_barrier_destroy().
Diffstat (limited to 'test')
-rw-r--r-- | test/thread_id.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/thread_id.c b/test/thread_id.c index 84676bf..49e3710 100644 --- a/test/thread_id.c +++ b/test/thread_id.c @@ -122,7 +122,7 @@ pthread_barrier_destroy(pthread_barrier_t *barrier) barrier_lock(barrier); if (barrier->magic != barrier_magic) rc = EINVAL; - else if (barrier->count != 0) + else if (barrier->nentered % barrier->count != 0) rc = EBUSY; else { rc = 0; |