nn::os::LightEvent::TryWait Member Function

Syntax

#include <nn/os.h>

bool TryWait();

bool TryWait(
     fnd::TimeSpan timeout
);

List of Overloaded Member Functions

TryWait( ) Obtains whether the flag is set.
TryWait(fnd::TimeSpan) Waits the specified period for the flag to be set.

Description of TryWait( )

For an automatically resetting event, it also clears the flag if the flag is set.

Description of TryWait(fnd::TimeSpan)

For an automatically resetting event, it clears the flag at the same time that the flag is set and the waiting stops.

When the timeout period elapses, control returns from this function even if the flag has not been set yet.


CONFIDENTIAL