libbbb  1.2.1
Groups common code used in some applications and libraries.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
bbb::JobWorker Class Reference

This class represents a job as a worker thread. More...

#include <jobinterf.h>

+ Inheritance diagram for bbb::JobWorker:

Public Member Functions

 JobWorker (void)
 constructor;
 
virtual ~JobWorker (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
 
- 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
 

Protected Member Functions

virtual void run (void)
 called in new thread's context;
 

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
 

Detailed Description

This class represents a job as a worker thread.


The documentation for this class was generated from the following files: