nn::os::LightBarrier Classclass LightBarrier
Synchronization mechanism that waits for the arrival of multiple threads.
Until the number of threads specified during initialization arrive, any threads that arrive early will be made to wait.
This class cannot be used to wait for the arrival of N threads if the total number of threads exceeds N.
All member functions of this class are thread-safe with the exception of Await, Initialize, and Finalize. The Await function is only thread-safe between the number of threads specified by either the constructor or the Initialize member function.
| Initialization/Finalization | ||
|---|---|---|
LightBarrier
|
Constructor. | |
Initialize
|
Performs initialization. | |
Finalize
|
Performs finalization. | |
| Obtaining Debug Info | ||
GetReleaseCount
|
Gets the number of threads to wait for. | |
GetNumOfWaiting
|
Gets the number of threads that are waiting. | |
| Thread Blocking Control | ||
Await
|
Waits for the arrival of another thread. | |
CONFIDENTIAL