nn::os::Alarm::SetPeriodic Member Function

Syntax

#include <nn/os.h>

void SetPeriodic(
     nn::fnd::TimeSpan initial,
     nn::fnd::TimeSpan interval,
     AlarmHandler handler,
     void * param
);

Arguments

Name Description
in initial Length of time until calling the handler for the first time
in interval Interval between subsequent calls to the handler, beginning from the second call
in handler Alarm handler
in param Parameters to pass to the handler

Return Values

None.

Description

Sets a periodic alarm. Calls the handler once after the initial duration has elapsed and thereafter continues calling it at the specified interval.

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