#include <WallClock.h>
Public Member Functions | |
| WallClock (size_t frequency) | |
| virtual | ~WallClock () |
| void | sync () |
Protected Member Functions | |
| virtual void | componentUp () |
| virtual void | componentRun () |
| virtual void | componentDown () |
Definition at line 19 of file WallClock.h.
| dtn::core::WallClock::WallClock | ( | size_t | frequency | ) |
Constructor for the global Clock
| frequency | Specify the frequency for the clock tick in seconds. |
Definition at line 16 of file WallClock.cpp.
| dtn::core::WallClock::~WallClock | ( | ) | [virtual] |
Definition at line 20 of file WallClock.cpp.
References componentDown(), and dtn::daemon::IndependentComponent::isRunning().
| 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] |
Implements dtn::daemon::IndependentComponent.
Definition at line 43 of file WallClock.cpp.
References dtn::utils::Clock::getTime(), ibrcommon::WaitForConditional::go(), dtn::core::TimeEvent::raise(), ibrcommon::Thread::sleep(), dtn::core::TIME_SECOND_TICK, and ibrcommon::Thread::yield().
| 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().
1.6.3