nn::os::Alarm::SetOneShot Member Function

Syntax

#include <nn/os.h>

void SetOneShot(
     nn::fnd::TimeSpan time,
     AlarmHandler handler,
     void * param
);

Parameters

Name Description
in time How long to wait until calling the handler (ns).
in handler Alarm handler.
in param Parameters to pass to the handler.

Return Values

None.

Description

Sets a one-shot alarm. Calls the handler only once after the specified time has elapsed.

In the Debug/Development builds, if this function is called while an alarm is set it will fail on an assertion inside the library. In the Release build, processing with continue without applying the setting.

Revision History

2011/06/22
Described the behavior if called while an alarm is set.
2010/01/07
Initial version.

CONFIDENTIAL