fawkes::MainLoopAspect Class Reference
[Fawkes Thread Aspects]
Thread aspect that allows to replace the main loop of the main application of Fawkes.
More...
#include <aspect/mainloop.h>

Public Member Functions | |
| virtual | ~MainLoopAspect () |
| Virtual empty destructor. | |
| void | init_MainLoopAspect (BlockedTimingExecutor *btexec) |
| Initialize main loop aspect. | |
Protected Attributes | |
| BlockedTimingExecutor * | blocked_timing_executor |
| This is a blocked timing executor instance which can be used to run threads with the BlockedTimingAspect. | |
Detailed Description
Thread aspect that allows to replace the main loop of the main application of Fawkes.Warning, replacing the main loop may severely interfere with the functionality of Fawkes. Make sure that you know what the main loop needs, what it has to do and what it should not do.
At any given time there can only be one thread active with this aspect.
Definition at line 33 of file mainloop.h.
Constructor & Destructor Documentation
| fawkes::MainLoopAspect::~MainLoopAspect | ( | ) | [virtual] |
Member Function Documentation
| void fawkes::MainLoopAspect::init_MainLoopAspect | ( | BlockedTimingExecutor * | btexec | ) |
Initialize main loop aspect.
Called from the Aspect initializer.
- Parameters:
-
btexec blocked timing executor instance that can be used to run threads that have the blocked timing aspect. It's accessible as blocked_timing_aspect.
Definition at line 59 of file mainloop.cpp.
References blocked_timing_executor.
Referenced by fawkes::AspectIniFin::init().
Member Data Documentation
This is a blocked timing executor instance which can be used to run threads with the BlockedTimingAspect.
Definition at line 41 of file mainloop.h.
Referenced by init_MainLoopAspect(), and TimeTrackerMainLoopThread::loop().
The documentation for this class was generated from the following files:
- src/libs/aspect/mainloop.h
- src/libs/aspect/mainloop.cpp

