The SMP barrier provides barrier synchronization for SMP systems at the lowest level.
More...
The SMP barrier provides barrier synchronization for SMP systems at the lowest level.
The SMP barrier is implemented as a sense barrier, see also Herlihy and Shavit, "The Art of Multiprocessor Programming", 17.3 Sense-Reversing Barrier.
◆ _SMP_barrier_Control_initialize()
Initializes a SMP barrier control.
Concurrent initialization leads to unpredictable results.
- Parameters
-
[out] | control | The SMP barrier control. |
Definition at line 83 of file smpbarrier.h.
◆ _SMP_barrier_State_initialize()
Initializes a SMP barrier per-thread state.
- Parameters
-
[out] | state | The SMP barrier control. |
Definition at line 96 of file smpbarrier.h.
◆ _SMP_barrier_Wait()
Waits on the SMP barrier until count threads rendezvoused.
- Parameters
-
[in,out] | control | The SMP barrier control. |
[in,out] | state | The SMP barrier per-thread state. |
| count | The thread count bound to rendezvous. |
- Return values
-
true | This processor performed the barrier release. |
false | This processor did not performe the barrier release. |
Definition at line 21 of file smpbarrierwait.c.