Jive reference manual
List of all members | Classes | Public Member Functions | Protected Member Functions | Friends
jem::mt::WorkPool Class Reference

#include <jem/mt/WorkPool.h>

Inheritance diagram for jem::mt::WorkPool:
Inheritance graph

Classes

class  Job
 
class  Task
 

Public Member Functions

 WorkPool (int wmax)
 
int maxWorkers () const
 
int workerCount () const
 
Ref< JobnewJob (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 ClassgetClass () 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< Objectclone () 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 ClassgetType ()
 Returns the Class instance representing the Object class. More...
 

Constructor & Destructor Documentation

jem::mt::WorkPool::WorkPool ( int  wmax)
explicit
virtual jem::mt::WorkPool::~WorkPool ( )
protectedvirtual

Member Function Documentation

int jem::mt::WorkPool::maxWorkers ( ) const
int jem::mt::WorkPool::workerCount ( ) const
Ref<Job> jem::mt::WorkPool::newJob ( const Ref< Task > &  task)
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)

Friends And Related Function Documentation

friend class Arena_
friend
friend class Job_
friend
friend class Worker_
friend