ariba::utility::Timer Class Reference

#include <source/ariba/utility/system/Timer.h>

Inheritance diagram for ariba::utility::Timer:

Inheritance graph
[legend]
Collaboration diagram for ariba::utility::Timer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Timer ()
 ~Timer ()
void setInterval (unsigned int millis, bool oneshot=false)
void start ()
void stop ()

Protected Member Functions

virtual void eventFunction ()
virtual void handleSystemEvent (const SystemEvent &event)

Private Member Functions

 use_logging_h (Timer)

Static Private Member Functions

static void threadFunc (Timer *obj)

Private Attributes

boost::thread * timerThread
volatile unsigned int millis
volatile bool running
volatile bool oneshot


Detailed Description

Definition at line 61 of file Timer.h.


Constructor & Destructor Documentation

ariba::utility::Timer::Timer (  ) 

Definition at line 47 of file Timer.cpp.

References running, and timerThread.

ariba::utility::Timer::~Timer (  ) 

Definition at line 55 of file Timer.cpp.

References running, and timerThread.


Member Function Documentation

ariba::utility::Timer::use_logging_h ( Timer   )  [private]

void ariba::utility::Timer::setInterval ( unsigned int  millis,
bool  oneshot = false 
)

void ariba::utility::Timer::start (  ) 

void ariba::utility::Timer::stop (  ) 

void ariba::utility::Timer::eventFunction (  )  [protected, virtual]

void ariba::utility::Timer::handleSystemEvent ( const SystemEvent event  )  [protected, virtual]

void ariba::utility::Timer::threadFunc ( Timer obj  )  [static, private]


Member Data Documentation

boost::thread* ariba::utility::Timer::timerThread [private]

Definition at line 80 of file Timer.h.

Referenced by start(), Timer(), and ~Timer().

volatile unsigned int ariba::utility::Timer::millis [private]

Definition at line 83 of file Timer.h.

Referenced by handleSystemEvent(), start(), and threadFunc().

volatile bool ariba::utility::Timer::running [private]

Definition at line 84 of file Timer.h.

Referenced by handleSystemEvent(), start(), stop(), threadFunc(), Timer(), and ~Timer().

volatile bool ariba::utility::Timer::oneshot [private]

Definition at line 85 of file Timer.h.

Referenced by handleSystemEvent(), and threadFunc().


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

Generated on Wed May 27 18:24:11 2009 for Ariba by  doxygen 1.5.6