#include <loop_thread_obj.h>


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. | |
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.
| 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.
| virtual void FastLoopThreadObj::Loop | ( | ) | [protected, pure virtual] |
| 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.
1.5.8