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

Generic architecture management facilities. More...

#include <arch/thread.h>
Include dependency graph for thread.c:

Detailed Description

Generic architecture management facilities.

This module provides generic facilities for thread and core management. In particular, helper functions to startup worker threads are exposed, and a function to synchronize multiple threads on a software barrier.

The software barrier also offers a leader election facility, so that once all threads are synchronized on the barrier, the function returns true to only one of them.