ldas-tools-al  2.6.7
Namespaces | Typedefs | Functions | Variables
ThreadPool.cc File Reference
#include <ldastoolsal_config.h>
#include <list>
#include "ldastoolsal/MemChecker.hh"
#include "ldastoolsal/mutexlock.hh"
#include "ldastoolsal/TaskThread.hh"
#include "ldastoolsal/ThreadPool.hh"
Include dependency graph for ThreadPool.cc:

Namespaces

 LDASTools
 Objects of general use and interst.
 
 LDASTools::AL
 The Abstraction Layer.
 

Typedefs

typedef std::list< TaskThread * > thread_container_type
 

Functions

static void on_exit ()
 
MutexLock::baton_type baton ()
 Obtain lock. More...
 
static thread_container_typeavailable ()
 Obtain the queue of available resources. More...
 
static thread_container_typein_use ()
 Obtain the queue of resources currently in use. More...
 

Variables

static bool at_exit_initialized = false
 

Typedef Documentation

◆ thread_container_type

typedef std::list< TaskThread* > thread_container_type

Function Documentation

◆ available()

static thread_container_type& available ( )
inlinestatic

Obtain the queue of available resources.

The use of a function ensures the proper initialization of the data without having to depend on the link order initialization.

◆ baton()

MutexLock::baton_type baton ( )
inline

Obtain lock.

The use of a function ensures the proper initialization of the data without having to depend on the link order initialization.

◆ in_use()

static thread_container_type& in_use ( )
inlinestatic

Obtain the queue of resources currently in use.

The use of a function ensures the proper initialization of the data without having to depend on the link order initialization.

◆ on_exit()

static void on_exit ( )
static

Variable Documentation

◆ at_exit_initialized

bool at_exit_initialized = false
static