Keep track of threads to be run for a specified time. More...
#include <TimerThread.hh>
Classes | |
struct | p_type |
Public Types | |
typedef INT_4U | key_t |
Unique key. | |
typedef INT_4U | key_t |
Unique key. | |
Public Member Functions | |
TimerThread () | |
TimerThread () | |
~TimerThread () | |
Carefully destroy resources. | |
~TimerThread () | |
key_t | AddTimer (int Wakeup, SignalHandler::signal_type Signal) |
key_t | AddTimer (int Wakeup, SignalHandler::signal_type Signal) |
bool | RemoveTimer (key_t Key) |
bool | RemoveTimer (key_t Key) |
Static Public Member Functions | |
static TimerThread & | Instance () |
static TimerThread & | Instance () |
static TimerThread & | Instance () |
static TimerThread & | Instance () |
static TimerThread & | Instance () |
static TimerThread & | Instance () |
Private Attributes | |
std::unique_ptr< p_type > | p_ |
A reference to the private data. | |
Keep track of threads to be run for a specified time.
Unique key.
Unique key.
LDASTools::AL::TimerThread::TimerThread | ( | ) |
This class keeps track of multiple timers. The active timers are stored in an ordered list with the one to be executed next being at the head of the list.
LDASTools::AL::TimerThread::TimerThread | ( | ) |
LDASTools::AL::TimerThread::~TimerThread | ( | ) |
Carefully destroy resources.
LDASTools::AL::TimerThread::~TimerThread | ( | ) |
TimerThread::key_t LDASTools::AL::TimerThread::AddTimer | ( | int | Wakeup, |
SignalHandler::signal_type | Signal ) |
Add a timer to the list of timers. The list is maintained in assending order.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
bool LDASTools::AL::TimerThread::RemoveTimer | ( | key_t | Key | ) |
bool LDASTools::AL::TimerThread::RemoveTimer | ( | key_t | Key | ) |
|
private |
A reference to the private data.