Public Member Functions | Protected Member Functions

dtn::core::WallClock Class Reference

#include <WallClock.h>

Inherits ibrcommon::Conditional, dtn::daemon::IntegratedComponent, and ibrcommon::SimpleTimerCallback.

Collaboration diagram for dtn::core::WallClock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 WallClock (size_t frequency)
virtual ~WallClock ()
void sync ()
virtual size_t timeout (size_t identifier)
virtual const std::string getName () const

Protected Member Functions

virtual void componentUp ()
virtual void componentDown ()

Detailed Description

Definition at line 20 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 17 of file WallClock.cpp.

References ibrcommon::SimpleTimer::set().

Here is the call graph for this function:

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

Definition at line 22 of file WallClock.cpp.


Member Function Documentation

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

Definition at line 41 of file WallClock.cpp.

References ibrcommon::SimpleTimer::remove().

Here is the call graph for this function:

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

Definition at line 36 of file WallClock.cpp.

References ibrcommon::JoinableThread::start().

Here is the call graph for this function:

const std::string dtn::core::WallClock::getName (  )  const [virtual]
See also:
Component::getName()

Definition at line 69 of file WallClock.cpp.

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

Blocks until the next clock tick happens.

Definition at line 26 of file WallClock.cpp.

References ibrcommon::Conditional::wait().

Here is the call graph for this function:

size_t dtn::core::WallClock::timeout ( size_t  identifier  )  [virtual]

timer callback method

See also:
SimpleTimerCallback::timeout()

Implements ibrcommon::SimpleTimerCallback.

Definition at line 46 of file WallClock.cpp.

References dtn::utils::Clock::getTime(), dtn::core::TimeEvent::raise(), ibrcommon::Conditional::signal(), and dtn::core::TIME_SECOND_TICK.

Here is the call graph for this function:


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