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

Syntax

#include <nn/os.h>

bool TryWait(
     fnd::TimeSpan timeout
);

Parameters

Name Description
in timeout Specifies the timeout period.

Return Values

Returns true if the flag was set. Returns false if the process timed out.

Description

Waits the specified period for the flag to be set.

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.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL