diff --git a/nx/include/switch/kernel/barrier.h b/nx/include/switch/kernel/barrier.h index 02c27d07..68283a15 100644 --- a/nx/include/switch/kernel/barrier.h +++ b/nx/include/switch/kernel/barrier.h @@ -9,10 +9,10 @@ /// Barrier structure typedef struct Barrier { - u64 count; ///< Number of threads to reach the barrier - u64 thread_total; ///< Number of threads to wait on - Semaphore throttle; ///< Semaphore to make sure threads release to scheduler one at a time - Semaphore lock; ///< Semaphore to lock barrier to prevent multiple operations by threads at once + u64 count; ///< Number of threads to reach the barrier + u64 thread_total; ///< Number of threads to wait on + Semaphore throttle; ///< Semaphore to make sure threads release to scheduler one at a time + Semaphore lock; ///< Semaphore to lock barrier to prevent multiple operations by threads at once Semaphore thread_wait; ///< Semaphore to force a thread to wait if count < thread_total } Barrier;