nn::os::Event::Wait Member Function

Syntax

#include <nn/os.h>

bool Wait(
     nn::fnd::TimeSpan timeout
);

Parameters

Name Description
in timeout Specifies the timeout period. Specifying 0 will cause control to return immediately.

Return Values

Returns whether an event occurred within the timeout period.

Description

Waits for an event to enter the signaled state or to timeout.

Immediately returns true if an event is in the signaled state. If the event is not in the signaled state, this function waits for at most the length of time specified by timeout, and returns true if it receives a signal by then. Returns false if it does not receive a signal even after waiting for the time specified by timeout.


CONFIDENTIAL