|
IBR-DTNSuite 0.6
|
#include <Timer.h>


Public Member Functions | |
| SimpleTimer (SimpleTimerCallback &callback, size_t identifier) | |
| virtual | ~SimpleTimer () |
| void | set (size_t timeout) |
| void | remove () |
Protected Member Functions | |
| void | run () |
| bool | __cancellation () |
| ibrcommon::SimpleTimer::SimpleTimer | ( | SimpleTimerCallback & | callback, |
| size_t | identifier | ||
| ) |
| ibrcommon::SimpleTimer::~SimpleTimer | ( | ) | [virtual] |
Definition at line 125 of file Timer.cpp.
References ibrcommon::JoinableThread::join(), and ibrcommon::JoinableThread::stop().

| bool ibrcommon::SimpleTimer::__cancellation | ( | ) | [protected, virtual] |
Reimplemented from ibrcommon::Thread.
Definition at line 137 of file Timer.cpp.
References ibrcommon::Conditional::abort().

| void ibrcommon::SimpleTimer::remove | ( | ) |
Definition at line 147 of file Timer.cpp.
References ibrcommon::JoinableThread::stop().
Referenced by dtn::daemon::StatisticLogger::componentDown(), and dtn::core::WallClock::componentDown().

| void ibrcommon::SimpleTimer::run | ( | ) | [protected, virtual] |
Abstract interface for thread context run method.
Implements ibrcommon::Thread.
Definition at line 152 of file Timer.cpp.
References ibrcommon::Conditional::ConditionalAbortException::COND_ABORT, ibrcommon::Conditional::ConditionalAbortException::COND_ERROR, ibrcommon::Conditional::ConditionalAbortException::COND_TIMEOUT, ibrcommon::Conditional::gettimeout(), ibrcommon::Conditional::ConditionalAbortException::reason, ibrcommon::SimpleTimerCallback::timeout(), ibrcommon::Conditional::wait(), and ibrcommon::Thread::yield().

| void ibrcommon::SimpleTimer::set | ( | size_t | timeout | ) |
Definition at line 131 of file Timer.cpp.
Referenced by dtn::daemon::StatisticLogger::componentUp(), and dtn::core::WallClock::WallClock().