FastLoopThreadObj Class Reference

Class to execute a loop in a separate thread. More...

#include <loop_thread_obj.h>

Inheritance diagram for FastLoopThreadObj:

Inheritance graph
[legend]
Collaboration diagram for FastLoopThreadObj:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FastLoopThreadObj (const std::string)
virtual ~FastLoopThreadObj ()
virtual void Main ()
 Main method executed in a separate thread.
virtual void OnStart ()
 Callback called during the start of the loop, before the first execution.
virtual void OnStop ()
 Callback called during the stop of the loop, after the last execution.

Protected Member Functions

virtual void Loop ()=0
 Thread loop.


Detailed Description

Class to execute a loop in a separate thread.

This class can be used to execute a loop in a separate thread. It's a "fast" loop as oppesed to the LoopThreadObj, because no delay is introduced between each loop (the loop then have to implements a pause itself, ie. using a call to select() or sleep()).

Definition at line 11 of file loop_thread_obj.h.


Constructor & Destructor Documentation

FastLoopThreadObj::FastLoopThreadObj ( const std::string  n  ) 

Definition at line 4 of file loop_thread_obj.cpp.

FastLoopThreadObj::~FastLoopThreadObj (  )  [virtual]

Definition at line 8 of file loop_thread_obj.cpp.


Member Function Documentation

virtual void FastLoopThreadObj::Loop (  )  [protected, pure virtual]

Thread loop.

Implemented in LoopThreadObj, Server< A >, and ServerClient.

void FastLoopThreadObj::Main (  )  [virtual]

Main method executed in a separate thread.

This method is executed in a separate thread when a call to Start is done.

Implements ThreadObj.

Reimplemented in LoopThreadObj.

Definition at line 12 of file loop_thread_obj.cpp.

virtual void FastLoopThreadObj::OnStart (  )  [inline, virtual]

Callback called during the start of the loop, before the first execution.

Reimplemented from ThreadObj.

Definition at line 23 of file loop_thread_obj.h.

virtual void FastLoopThreadObj::OnStop (  )  [inline, virtual]

Callback called during the stop of the loop, after the last execution.

Reimplemented from ThreadObj.

Reimplemented in Server< A >.

Definition at line 25 of file loop_thread_obj.h.


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

Generated on Sun Oct 10 19:10:05 2010 for libldsw by  doxygen 1.5.8