diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-27 16:17:24 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:55 (GMT) |
commit | 88920baf539cca052a478eeef4594422ce7e4db9 (patch) | |
tree | 28fe9b30ba32d05163a726b709ea342553b58c25 /test | |
parent | b7f27e0381af0ead3eb11112d9f26ccd79d59686 (diff) | |
download | hdf5-88920baf539cca052a478eeef4594422ce7e4db9.zip hdf5-88920baf539cca052a478eeef4594422ce7e4db9.tar.gz hdf5-88920baf539cca052a478eeef4594422ce7e4db9.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; |