![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "vault/gear/work-force.hpp"
Pool of worker threads for rendering.
| CONF | configuration/policy base must define:
|
Definition at line 240 of file work-force.hpp.
Public Member Functions | |
| WorkForce (CONF config) | |
| ~WorkForce () | |
| void | activate (double degree=1.0) |
| Activate or scale up the worker pool. | |
| void | incScale (uint step=+1) |
| void | awaitShutdown () |
| size_t | size () const |
Private Types | |
| using | Pool = std::list< work::Worker< CONF > > |
Private Attributes | |
| CONF | setup_ |
| Pool | workers_ |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
| ~NonCopyable ()=default | |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable const &)=delete | |
| NonCopyable & | operator= (NonCopyable const &)=delete |
|
inline |
Definition at line 250 of file work-force.hpp.
|
inline |
Definition at line 255 of file work-force.hpp.
References WorkForce< CONF >::awaitShutdown(), and ERROR_LOG_AND_IGNORE.
Here is the call graph for this function:
|
private |
Definition at line 243 of file work-force.hpp.
|
inline |
Activate or scale up the worker pool.
| degree | fraction of the full #COMPUTATION_CAPACITY to activate |
Definition at line 271 of file work-force.hpp.
References util::limited(), WorkForce< CONF >::setup_, and WorkForce< CONF >::workers_.
Here is the call graph for this function:
|
inline |
Definition at line 280 of file work-force.hpp.
References util::min(), WorkForce< CONF >::setup_, and WorkForce< CONF >::workers_.
Here is the call graph for this function:
|
inline |
Definition at line 289 of file work-force.hpp.
References WorkForce< CONF >::setup_, WorkForce< CONF >::size(), and WorkForce< CONF >::workers_.
Referenced by WorkForce< CONF >::~WorkForce().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 298 of file work-force.hpp.
References WorkForce< CONF >::workers_.
Referenced by WorkForce< CONF >::awaitShutdown().
Here is the caller graph for this function:
|
private |
Definition at line 245 of file work-force.hpp.
Referenced by WorkForce< CONF >::activate(), WorkForce< CONF >::awaitShutdown(), and WorkForce< CONF >::incScale().
|
private |
Definition at line 246 of file work-force.hpp.
Referenced by WorkForce< CONF >::activate(), WorkForce< CONF >::awaitShutdown(), WorkForce< CONF >::incScale(), and WorkForce< CONF >::size().
Inheritance diagram for WorkForce< CONF >:
Collaboration diagram for WorkForce< CONF >: