diff options
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; |