Zero  0.1.0
Public Member Functions | Private Attributes | List of all members
SkewShiftingThread Class Reference
Inheritance diagram for SkewShiftingThread:
worker_thread_t thread_wrapper_t

Public Member Functions

 SkewShiftingThread (unsigned delay)
 
virtual void do_work ()
 
- Public Member Functions inherited from worker_thread_t
 worker_thread_t (int inverval_ms=-1)
 
virtual ~worker_thread_t ()
 
void wakeup (bool wait=false, int rounds_to_wait=-1)
 
void stop ()
 
void wait_for_round (long round=0)
 
long get_rounds_completed () const
 
bool is_busy () const
 
- Public Member Functions inherited from thread_wrapper_t
 thread_wrapper_t ()
 
virtual ~thread_wrapper_t ()
 
virtual void before_run ()
 
virtual void after_run ()
 
void spawn ()
 
void fork ()
 
void join ()
 

Private Attributes

unsigned delay
 

Additional Inherited Members

- Protected Member Functions inherited from worker_thread_t
bool should_exit () const
 
void notify_one ()
 
void notify_all ()
 
void quit ()
 

Constructor & Destructor Documentation

§ SkewShiftingThread()

SkewShiftingThread::SkewShiftingThread ( unsigned  delay)
inline

Member Function Documentation

§ do_work()

virtual void SkewShiftingThread::do_work ( )
inlinevirtual

Actual working method to be implemented by derived classes.

Implements worker_thread_t.

Member Data Documentation

§ delay

unsigned SkewShiftingThread::delay
private

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