dtn::core::WallClock Class Reference

#include <WallClock.h>

Inheritance diagram for dtn::core::WallClock:
ibrcommon::WaitForConditional dtn::daemon::IndependentComponent ibrcommon::Conditional dtn::daemon::Component ibrcommon::JoinableThread ibrcommon::Mutex ibrcommon::Thread

List of all members.

Public Member Functions

 WallClock (size_t frequency)
virtual ~WallClock ()
void sync ()

Protected Member Functions

virtual void componentUp ()
virtual void componentRun ()
virtual void componentDown ()

Detailed Description

Definition at line 19 of file WallClock.h.


Constructor & Destructor Documentation

dtn::core::WallClock::WallClock ( size_t  frequency  ) 

Constructor for the global Clock

Parameters:
frequency Specify the frequency for the clock tick in seconds.

Definition at line 16 of file WallClock.cpp.

dtn::core::WallClock::~WallClock (  )  [virtual]

Member Function Documentation

void dtn::core::WallClock::componentDown (  )  [protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 37 of file WallClock.cpp.

References ibrcommon::JoinableThread::join().

Referenced by ~WallClock().

void dtn::core::WallClock::componentRun ( void   )  [protected, virtual]
void dtn::core::WallClock::componentUp (  )  [protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 33 of file WallClock.cpp.

void dtn::core::WallClock::sync (  ) 

Blocks until the next clock tick happens.

Definition at line 28 of file WallClock.cpp.

References ibrcommon::Conditional::wait().


The documentation for this class was generated from the following files:
Generated on Mon Aug 23 08:12:58 2010 for IBR-DTNSuite by  doxygen 1.6.3