Jive reference manual
|
#include <jem/mt/WorkPool.h>
Classes | |
class | Job |
class | Task |
Public Member Functions | |
WorkPool (int wmax) | |
int | maxWorkers () const |
int | workerCount () const |
Ref< Job > | newJob (const Ref< Task > &task) |
void | waitAll () |
bool | waitAll (const Time &timeout) |
void | cancelAll () |
void | killWorkers () |
int | killWorkers (const Time &timeout) |
Public Member Functions inherited from jem::Object | |
virtual Class * | getClass () const |
Returns the Class instance representing the runtime class of this object. More... | |
virtual String | toString () const |
Returns a short textual description of this object. More... | |
virtual long | hashValue () const |
Returns a hash value for this object. More... | |
virtual bool | equals (const Ref< Object > &obj) const |
Tests whether two objects are equal. More... | |
Ref< Object > | clone () const |
Returns a copy of this object. More... | |
Protected Member Functions | |
virtual | ~WorkPool () |
Protected Member Functions inherited from jem::Collectable | |
Collectable () | |
Creates an empty Collectable . More... | |
~Collectable () | |
Frees resources. More... | |
Friends | |
class | Arena_ |
class | Job_ |
class | Worker_ |
Additional Inherited Members | |
Static Public Member Functions inherited from jem::Object | |
static Class * | getType () |
Returns the Class instance representing the Object class. More... | |
|
explicit |
|
protectedvirtual |
int jem::mt::WorkPool::maxWorkers | ( | ) | const |
int jem::mt::WorkPool::workerCount | ( | ) | const |
void jem::mt::WorkPool::waitAll | ( | ) |
bool jem::mt::WorkPool::waitAll | ( | const Time & | timeout | ) |
void jem::mt::WorkPool::cancelAll | ( | ) |
void jem::mt::WorkPool::killWorkers | ( | ) |
int jem::mt::WorkPool::killWorkers | ( | const Time & | timeout | ) |
|
friend |
|
friend |
|
friend |