diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-27 16:17:24 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-02-27 16:17:24 (GMT) |
commit | 11d22f3ea50d45796e110fe805a694692de91456 (patch) | |
tree | b64b598b80362b8ce602140a0ea8e61d4911cf5d /test | |
parent | 802bf2dc1eca3c3fd4f3f2cbc90c9c40c6d94607 (diff) | |
download | hdf5-11d22f3ea50d45796e110fe805a694692de91456.zip hdf5-11d22f3ea50d45796e110fe805a694692de91456.tar.gz hdf5-11d22f3ea50d45796e110fe805a694692de91456.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; |