Fawkes API  Fawkes Development Version
fawkes::ThreadLoopListener Class Reference

Thread loop listener interface. More...

#include <>>

Inheritance diagram for fawkes::ThreadLoopListener:

Public Member Functions

virtual ~ThreadLoopListener ()
 Virtual empty destructor. More...
 
virtual void pre_loop (Thread *thread)
 Empty stub for the pre loop function of the loop listener. More...
 
virtual void post_loop (Thread *thread)
 Empty stub for the post loop function of the loop listener. More...
 

Detailed Description

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.

Author
Till Hofmann

Definition at line 31 of file thread_loop_listener.h.

Constructor & Destructor Documentation

◆ ~ThreadLoopListener()

fawkes::ThreadLoopListener::~ThreadLoopListener ( )
virtual

Virtual empty destructor.

Definition at line 37 of file thread_loop_listener.cpp.

Member Function Documentation

◆ post_loop()

void fawkes::ThreadLoopListener::post_loop ( Thread thread)
virtual

Empty stub for the post loop function of the loop listener.

This function is called by the thread every time after loop() returned. Provide a stub such that not every derived class must implement the function.

Parameters
threadthread this loop listener belongs to

Reimplemented in fawkes::SyncPointAspect, and fawkes::BlockedTimingLoopListener.

Definition at line 57 of file thread_loop_listener.cpp.

◆ pre_loop()

void fawkes::ThreadLoopListener::pre_loop ( Thread thread)
virtual

Empty stub for the pre loop function of the loop listener.

This function is called by the thread every time before loop() is called. Provide a stub such that not every derived class must implement the function.

Parameters
threadthread this loop listener belongs to

Reimplemented in fawkes::SyncPointAspect.

Definition at line 47 of file thread_loop_listener.cpp.


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