void barrierWait(Barrier *b)
Forces threads to wait until all threads have called barrierWait.
void barrierInit(Barrier *b, u64 thread_count)
Initializes a barrier and the number of threads to wait on.
Condition variable synchronization primitive.
u32 CondVar
Condition variable.
Definition: condvar.h:13
Mutex synchronization primitive.
_LOCK_T Mutex
Mutex datatype, defined in newlib.
Definition: mutex.h:12
Barrier structure.
Definition: barrier.h:12
u64 count
Number of threads to reach the barrier.
Definition: barrier.h:13
u64 total
Number of threads to wait on.
Definition: barrier.h:14
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22