nidas  v1.2-1520
Public Member Functions | List of all members
nidas::core::LooperClient Class Referenceabstract

Interface of a client of Looper. More...

#include <LooperClient.h>

Inheritance diagram for nidas::core::LooperClient:
Inheritance graph
[legend]

Public Member Functions

virtual ~LooperClient ()
 
virtual void looperNotify ()=0 throw ()
 Method called by Looper. More...
 

Detailed Description

Interface of a client of Looper.

An object that wants a method called periodically should implement LooperClient::looperNotify() and register itself with a Looper via Looper::addClient().

Constructor & Destructor Documentation

virtual nidas::core::LooperClient::~LooperClient ( )
inlinevirtual

Member Function Documentation

virtual void nidas::core::LooperClient::looperNotify ( )
throw (
)
pure virtual

Method called by Looper.

This method should not be a heavy user of resources, since the notification of other clients is delayed until this method finishes. If much work is to be done, this method should post a semaphore for another worker thread to proceed.

Implemented in nidas::core::SerialSensor::Prompter, SensorSimulator, and nidas::dynld::isff::MOSMote::MOS_TimeSyncer.

Referenced by nidas::core::Looper::run().


The documentation for this class was generated from the following file: