Skip to content

Commit

Permalink
Update libusb/hidapi_thread_pthread.h
Browse files Browse the repository at this point in the history
Co-authored-by: Ihor Dutchak <ihor.youw@gmail.com>
  • Loading branch information
slouken and Youw authored Jun 1, 2023
1 parent 0bc55c9 commit 553a482
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libusb/hidapi_thread_pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 553a482

Please sign in to comment.