Lumiera
0.pre.03
»edit your freedom«
|
#include "vault/gear/work-force.hpp"
Individual worker thread: repeatedly pulls the doWork
functor.
Definition at line 127 of file work-force.hpp.
Public Member Functions | |
Worker (CONF config) | |
bool | isDead () const |
this Worker starts out active, but may terminate | |
Public Attributes | |
std::atomic< bool > | emergency {false} |
emergency break to trigger cooperative halt | |
Private Member Functions | |
activity::Proc | contentionWait () |
activity::Proc | idleWait () |
void | pullWork () |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
Private Attributes | |
size_t | idleCycles_ {0} |
size_t | kickLevel_ {0} |
size_t | randFact_ {0} |
lib::Thread | thread_ |