
The actual worker using a thread to run a job. More...
#include <run-jobs.hpp>
Public Member Functions | |
| Worker (Job< RetType > *j, Master *m, int i) | |
| Initialize worker. | |
| virtual void | run (void) |
| Run jobs. | |
| virtual | ~Worker (void) |
| Nothing to delete (done in run) | |
Public Member Functions inherited from Gecode::Support::Runnable | |
| Runnable (bool d=true) | |
| Initialize, d defines whether object is deleted when terminated. | |
| void | todelete (bool d) |
| Set whether to delete upon termination. | |
| bool | todelete (void) const |
| Return whether to be deleted upon termination. | |
| virtual Terminator * | terminator (void) const |
| Return terminator object. | |
| virtual | ~Runnable (void) |
| Destructor. | |
Protected Attributes | |
| Job< RetType > * | job |
| The job to run. | |
| Master * | master |
| The master to communicate with. | |
| int | idx |
| Original iterator index of job. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Gecode::Support::Runnable | |
| static void * | operator new (size_t s) |
| Allocate memory from heap. | |
| static void | operator delete (void *p) |
| Free memory allocated from heap. | |
The actual worker using a thread to run a job.
Definition at line 80 of file run-jobs.hpp.
|
inline |
Initialize worker.
Definition at line 176 of file run-jobs.hpp.
|
virtual |
Nothing to delete (done in run)
Definition at line 182 of file run-jobs.hpp.
|
virtual |
|
protected |
The job to run.
Definition at line 83 of file run-jobs.hpp.
|
protected |
The master to communicate with.
Definition at line 85 of file run-jobs.hpp.
|
protected |
Original iterator index of job.
Definition at line 87 of file run-jobs.hpp.