This class represents a job as multiple worker threads. More...
#include <jobinterf.h>
Inheritance diagram for bbb::JobMultiWorkers:Classes | |
| class | Th |
| a worker thread More... | |
Public Member Functions | |
| JobMultiWorkers (void) | |
| constructor; | |
| virtual | ~JobMultiWorkers (void) |
| destructor; | |
| bool | startJob (void) |
| start the job | |
| void | stopJob (void) |
| stop the job | |
| bool | isJobRunning (void) const |
| tell if the job is running | |
| void | setFrequency (int milisec) |
| set the frequency | |
| int | threadsCount (void) |
| number of threads to use | |
| bool | setThreadsCount (int i) |
| set number of threads to use (only when not running | |
Public Member Functions inherited from bbb::JobInterf | |
| JobInterf (void) | |
| constructor; | |
| virtual | ~JobInterf (void) |
| destructor; | |
| virtual int | frequency (void) const |
| frequency in miliseconds | |
| void | setCallback (KbTimeout val) |
| sets the callback to use | |
| KbTimeout | callback (void) |
| retrieves the callback used | |
Additional Inherited Members | |
Public Types inherited from bbb::JobInterf | |
| typedef void(* | KbTimeout )(JobInterf *job) |
| the function to call when the timeout expires | |
Public Attributes inherited from bbb::JobInterf | |
| Amorph | a0_ |
| associated data | |
Protected Attributes inherited from bbb::JobInterf | |
| KbTimeout | kb_ |
| the function to call when the timeout expires | |
| int | freq_msec_ |
| the frequency | |
This class represents a job as multiple worker threads.