From 553a482b1636c86ac8b736825275ea9517c0ae39 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 1 Jun 2023 10:26:11 -0700 Subject: [PATCH] Update libusb/hidapi_thread_pthread.h Co-authored-by: Ihor Dutchak --- libusb/hidapi_thread_pthread.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libusb/hidapi_thread_pthread.h b/libusb/hidapi_thread_pthread.h index 86d5445b3..af6658d3a 100644 --- a/libusb/hidapi_thread_pthread.h +++ b/libusb/hidapi_thread_pthread.h @@ -68,8 +68,7 @@ static int pthread_barrier_wait(pthread_barrier_t *barrier) { pthread_mutex_lock(&barrier->mutex); ++(barrier->count); - if(barrier->count >= barrier->trip_count) - { + if(barrier->count >= barrier->trip_count) { barrier->count = 0; pthread_cond_broadcast(&barrier->cond); pthread_mutex_unlock(&barrier->mutex);