ldas-tools-al 2.6.7
Loading...
Searching...
No Matches
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:
Collaboration diagram for LDASTools::AL::TimerThread:

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 ()
 Carefully destroy resources.
key_t AddTimer (int Wakeup, SignalHandler::signal_type Signal)
bool RemoveTimer (key_t Key)
 TimerThread ()
 ~TimerThread ()
key_t AddTimer (int Wakeup, SignalHandler::signal_type Signal)
bool RemoveTimer (key_t Key)

Static Public Member Functions

static TimerThreadInstance ()
static TimerThreadInstance ()

Private Attributes

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

Detailed Description

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

Member Typedef Documentation

◆ key_t [1/2]

◆ key_t [2/2]

Constructor & Destructor Documentation

◆ TimerThread() [1/2]

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() [1/2]

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

Carefully destroy resources.

◆ TimerThread() [2/2]

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

◆ ~TimerThread() [2/2]

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

Member Function Documentation

◆ AddTimer() [1/2]

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.

◆ AddTimer() [2/2]

key_t LDASTools::AL::TimerThread::AddTimer ( int Wakeup,
SignalHandler::signal_type Signal )

◆ Instance() [1/2]

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

◆ Instance() [2/2]

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

◆ RemoveTimer() [1/2]

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

◆ RemoveTimer() [2/2]

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:
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/build/include/ldastoolsal/TimerThread.hh
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/TimerThread.hh
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/TimerThread.cc