#include <Timer.h>
Public Member Functions | |
| Timer (TimerCallback &callback, size_t timeout) | |
| virtual | ~Timer () |
| void | set (size_t timeout) |
| void | reset () |
| void | stop () |
Static Public Member Functions | |
| static size_t | get_current_time () |
Protected Member Functions | |
| void | run () |
Definition at line 44 of file Timer.h.
| ibrcommon::Timer::Timer | ( | TimerCallback & | callback, | |
| size_t | timeout | |||
| ) |
| size_t ibrcommon::Timer::get_current_time | ( | ) | [static] |
Definition at line 19 of file Timer.cpp.
Referenced by ibrcommon::MultiTimer::run(), and ibrcommon::MultiTimer::set().
| void ibrcommon::Timer::reset | ( | ) |
This method resets the timer.
Definition at line 55 of file Timer.cpp.
References ibrcommon::StatefulConditional< T, block >::setState().
| void ibrcommon::Timer::run | ( | ) | [protected, virtual] |
Abstract interface for thread context run method.
Implements ibrcommon::Thread.
Definition at line 61 of file Timer.cpp.
References ibrcommon::StatefulConditional< T, block >::ifState(), ibrcommon::StatefulConditional< T, block >::setState(), ibrcommon::TimerCallback::timeout(), and ibrcommon::Conditional::wait().
| void ibrcommon::Timer::set | ( | size_t | timeout | ) |
Definition at line 48 of file Timer.cpp.
References ibrcommon::StatefulConditional< T, block >::setState().
| void ibrcommon::Timer::stop | ( | ) |
Definition at line 39 of file Timer.cpp.
References ibrcommon::JoinableThread::join(), and ibrcommon::StatefulConditional< T, block >::setState().
Referenced by ~Timer().
1.6.3