nn::os::Event Classclass Event : public nn::os::EventBase
Class for handling events. Events are synchronization objects that send notification that an event has occurred.
Generally, use the nn::os::LightEvent class instead of nn::os::Event. The nn::os::LightEvent class is better than the nn::os::Event class in most respects, except that it cannot wait for multiple synchronization objects at the same time.
An event has two possible states: signaled and non-signaled. The Wait operation for an Event waits until the event enters the signaled state.
There are two types of events: those that are manually reset and those that are automatically reset. This characteristic can be configured by parameters during initialization.
Manually resetting events always remain in the signaled state from the time they are signaled with Signal until ClearSignal is called. When such events are in the signaled state, all Wait operations waiting for them are released.
When an automatically resetting event is signaled by Signal, only one of the threads waiting on it is released: the thread with the highest priority among those threads that are able to be released. If there is more than one such thread with the highest priority, only one of them is released. No other threads are released.
You can create up to 32 Event objects. Note also that different functions might use up resources that count against this limit.
Event
|
Constructs and initializes an event. | |
|---|---|---|
Initialize
|
Initializes an event. | |
Finalize
|
Destroys an event. | |
~Event
|
Destructor. | |
Signal
|
Puts an event into the signaled state. | |
Wait
|
Waits for an event to enter the signaled state. | |
ClearSignal
|
Clears an event manually. | |
| S |
GetCurrentCount
|
Gets the number of Event objects that are currently being used. |
| S |
GetMaxCount
|
Gets the maximum number of Event objects being used simultaneously. |
nn::util::NonCopyable
nn::os::HandleObject
nn::os::WaitObject
nn::os::InterruptEvent
nn::os::EventBase
nn::os::Event
CONFIDENTIAL