Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
Scheduler::Setup Struct Reference

Description

Binding of worker callbacks to the scheduler implementation.

Definition at line 217 of file scheduler.hpp.

Public Attributes

Schedulerscheduler
 
- Public Attributes inherited from Config
const milliseconds IDLE_WAIT = 20ms
 wait period when a worker falls idle
 
const size_t DISMISS_CYCLES = 100
 number of idle cycles after which the worker terminates
 

Public Member Functions

activity::Proc doWork ()
 
void finalHook (bool _)
 

Additional Inherited Members

- Static Public Attributes inherited from Config
static size_t COMPUTATION_CAPACITY = Config::getDefaultComputationCapacity()
 Nominal »full size« of a pool of concurrent workers.
 
- Static Public Member Functions inherited from Config
static size_t getDefaultComputationCapacity ()
 default value for full computing capacity is to use all (virtual) cores.
 

Member Function Documentation

◆ doWork()

activity::Proc doWork ( )
inline

Definition at line 220 of file scheduler.hpp.

References Scheduler::doWork(), and Scheduler::Setup::scheduler.

+ Here is the call graph for this function:

◆ finalHook()

void finalHook ( bool  _)
inline

Definition at line 221 of file scheduler.hpp.

References _, Scheduler::handleWorkerTermination(), and Scheduler::Setup::scheduler.

+ Here is the call graph for this function:

Member Data Documentation

◆ scheduler

Scheduler& scheduler

Definition at line 219 of file scheduler.hpp.

Referenced by Scheduler::Setup::doWork(), and Scheduler::Setup::finalHook().

+ Inheritance diagram for Scheduler::Setup:
+ Collaboration diagram for Scheduler::Setup:

The documentation for this struct was generated from the following file: