ldas-tools-al 2.6.4
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
LDASTools::AL::TimerThread Class Reference

Keep track of threads to be run for a specified time. More...

#include <TimerThread.hh>

Inheritance diagram for LDASTools::AL::TimerThread:
Inheritance graph
[legend]
Collaboration diagram for LDASTools::AL::TimerThread:
Collaboration graph
[legend]

Classes

struct  p_type
 

Public Types

typedef INT_4U key_t
 Unique key. More...
 

Public Member Functions

 TimerThread ()
 
 ~TimerThread ()
 Carefully destroy resources. More...
 
key_t AddTimer (int Wakeup, SignalHandler::signal_type Signal)
 
bool RemoveTimer (key_t Key)
 

Static Public Member Functions

static TimerThreadInstance ()
 

Private Attributes

std::unique_ptr< p_typep_
 A reference to the private data. More...
 

Detailed Description

Keep track of threads to be run for a specified time.

Member Typedef Documentation

◆ key_t

Unique key.

Constructor & Destructor Documentation

◆ TimerThread()

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.

◆ ~TimerThread()

LDASTools::AL::TimerThread::~TimerThread ( )

Carefully destroy resources.

Member Function Documentation

◆ AddTimer()

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.

◆ Instance()

static TimerThread & LDASTools::AL::Singleton< TimerThread >::Instance ( )
staticinherited

◆ RemoveTimer()

bool LDASTools::AL::TimerThread::RemoveTimer ( key_t  Key)

Member Data Documentation

◆ p_

std::unique_ptr< p_type > LDASTools::AL::TimerThread::p_
private

A reference to the private data.


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