ldas-tools-al 2.6.7
Loading...
Searching...
No Matches
ThreadPool.cc File Reference
Include dependency graph for ThreadPool.cc:

Classes

class  TaskThread
class  ThreadPool
 Maintains a pool of threads. More...

Namespaces

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

Typedefs

typedef std::list< TaskThread * > thread_container_type

Functions

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

Variables

static bool at_exit_initialized = false

Typedef Documentation

◆ thread_container_type

typedef std::list< TaskThread* > thread_container_type

Function Documentation

◆ available()

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()

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()

void on_exit ( )
static

Variable Documentation

◆ at_exit_initialized

bool at_exit_initialized = false
static