Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fawkes::MainLoopEmployer Class Reference

Main loop employer The MainLoopEmployer calls the main loop for execution. More...

#include <>>

Inheritance diagram for fawkes::MainLoopEmployer:

Public Member Functions

virtual ~MainLoopEmployer ()
 Virtual empty destructor.
virtual void set_mainloop_thread (Thread *mainloop_thread)=0
 Set a new main loop.

Detailed Description

Main loop employer The MainLoopEmployer calls the main loop for execution.

It is usually implemented in the main program.

Author
Tim Niemueller

Definition at line 31 of file employer.h.

Constructor & Destructor Documentation

fawkes::MainLoopEmployer::~MainLoopEmployer ( )
virtual

Virtual empty destructor.

Definition at line 45 of file employer.cpp.

Member Function Documentation

void fawkes::MainLoopEmployer::set_mainloop_thread ( fawkes::Thread mainloop_thread)
pure virtual

Set a new main loop.

Set the main loop. An exception should be thrown if anything prevents this from happening successful.

Parameters
mainloop_threadnew main loop thread. The caller of this method must ensure that the thread operates in wait-for-wakeup mode and executes the main loop as its loop() method (i.e. the thread must have a properly initialized MainLoopAspect).

Implemented in fawkes::FawkesMainThread.

Referenced by fawkes::MainLoopAspectIniFin::finalize().


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