ROOT-Sim core  3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
Functions
sync.c File Reference

Easier Synchronization primitives. More...

#include <core/sync.h>
#include <core/core.h>
Include dependency graph for sync.c:

Functions

bool sync_thread_barrier (void)
 Synchronizes threads on a barrier. More...
 

Detailed Description

Easier Synchronization primitives.

This module defines synchronization primitives for the parallel runtime.

Function Documentation

◆ sync_thread_barrier()

bool sync_thread_barrier ( void  )

Synchronizes threads on a barrier.

Returns
true if this thread has been elected as leader, false otherwise