ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::threadmodel Namespace Reference

Description:

This is the namespace of ALib Module "Threadmodel". Please refer to the Programmer's Manual of this module for information about how the types found in this namespace are used.

Attention
This module is not in a stable and consistent state, yet. Instead, it is considered experimental.

Type Index:

class  DedicatedWorker
 
class  DWManager
 
struct  Job
 
struct  JPromise
 A simple encapsulated promise. More...
 
class  ThreadPool
 
class  Trigger
 
class  Triggered
 

Enumeration Index:

enum class  Priority {
  Lowest = 0 , DeferredDeletion = 500 , Low = 1000 , Standard = 2000 ,
  High = 3000 , Highest = 4000
}
 Possible priorities of jobs assigned to an DedicatedWorker. More...
 

Function Index:

ALIB_API void Bootstrap ()
 

Enumeration Details:

◆ Priority

enum class Priority
strong

Possible priorities of jobs assigned to an DedicatedWorker.

Enumerator
Lowest 

As the name indicates.

DeferredDeletion 

As the name indicates.

Low 

As the name indicates.

Standard 

As the name indicates.

High 

As the name indicates.

Highest 

As the name indicates.

Definition at line 186 of file jobs.hpp.

Function Details:

◆ Bootstrap()

ALIB_API void Bootstrap ( )

This namespace function initializes the module ALib ThreadModel.

This function needs to be called with bootstrapping a process. The standard bootstrap code of ALib, hence the (overloaded) functions alib::Bootstrap will call this function.

Note
In fact, if the module ALib BaseCamp is included, then this function is empty, because the enumeration records will in this case be resourced in singleton alib::BASECAMP of type BaseCamp.

Multiple invocations of this method are forbidden.

See also
For information about using this method, consult chapter 4.2 Bootstrapping Non-Camp Modules of the ALib Programmer's Manual.