nn::os::LightBarrier

nn::os::LightBarrier Class

Header file: nn/os.h

Syntax

class LightBarrier : private nn::util::NonCopyable< LightBarrier >

Description

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 M threads, where M is a subset of the total number of threads N (where M < 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.

Member Functions

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.

Class Hierarchy

nn::util::NonCopyable
  nn::os::LightBarrier

Revision History

2010/06/14
Initial version.

CONFIDENTIAL