nn::os::Timer Class

Syntax

class Timer : public nn::os::WaitObject

Description

Class for representing timers.

Timers, like events, have two possible states: signaled and non-signaled. The Wait operation for a Timer waits until the event enters the signaled state.

There are two types of timers: those that are manually reset and those that are automatically reset. This characteristic can be configured by parameters during initialization. See the documentation for the Event class for more details about the differences.

Timers do not enter the signaled state immediately. They do so only after after the StartOneShot function is called and the specified timespan elapses.

Alternately, by calling StartPeriodic you can make them enter the signaled state on a periodic basis.

Member Functions

Timer Timer initialization.
Initialize Timer initialization.
TryInitialize Tries to initialize a timer.
Finalize Destroys a timer.
~Timer Destructor.
StartOneShot Starts a timer.
StartPeriodic Starts a timer.
Signal Sets a timer to the signaled state immediately.
Wait Waits until a timer notification.
Stop Stops a timer that has been started.
ClearSignal Clears a timer.

Class Hierarchy

ADLFireWall::NonCopyable
  nn::os::HandleObject
    nn::os::WaitObject
      nn::os::Timer

Revision History

2010/01/07
Initial version.

CONFIDENTIAL