Fawkes API
Fawkes Development Version
|
Thread loop listener interface. More...
#include <>>
Public Member Functions | |
virtual | ~ThreadLoopListener () |
Virtual empty destructor. More... | |
virtual void | pre_loop (Thread *thread) |
This is called by the thread every time before loop() is called. More... | |
virtual void | post_loop (Thread *thread) |
This is called by the thread every time after loop() returned. More... | |
Thread loop listener interface.
A thread loop listener can be added to a thread to define pre and post loop tasks, which are executed before and after every loop.
Definition at line 31 of file thread_loop_listener.h.
|
virtual |
Virtual empty destructor.
Definition at line 45 of file thread_loop_listener.cpp.
|
virtual |
This is called by the thread every time after loop() returned.
Empty stub for the post loop function of the loop listener.
thread | thread whose loop() just returned. |
This function is called right after the loop of the thread with the aspect. Provide a stub such that not every derived class must implement the function.
thread | thread this loop listener belongs to |
Reimplemented in fawkes::BlockedTimingLoopListener, and fawkes::SyncPointAspect.
Definition at line 65 of file thread_loop_listener.cpp.
|
virtual |
This is called by the thread every time before loop() is called.
Empty stub for the pre loop function of the loop listener.
thread | thread whose loop() is will be called. |
This function is called right before the loop of the thread with the aspect. Provide a stub such that not every derived class must implement the function.
thread | thread this loop listener belongs to |
Reimplemented in fawkes::SyncPointAspect.
Definition at line 55 of file thread_loop_listener.cpp.