Fawkes API
Fawkes Development Version
|
Thread initializer interface. More...
#include <core/threading/thread_initializer.h>
Public Member Functions | |
virtual | ~ThreadInitializer () |
Virtual empty destructor. More... | |
virtual void | init (Thread *thread)=0 |
This method is called by the ThreadManager for each newly added Thread. More... | |
Thread initializer interface.
This interface is used by the ThreadManager. The init() method is called for each added thread. If there are any special needs that have to be initialized before the thread is started on the given real classes of the thread this is the way to do it. See Fawkes main application for an example.
Definition at line 41 of file thread_initializer.h.
|
virtual |
Virtual empty destructor.
Definition at line 74 of file thread_initializer.cpp.
|
pure virtual |
This method is called by the ThreadManager for each newly added Thread.
thread | thread to initialize. |
CannotInitializeThread | thrown if thread can for not be initialized |
Implemented in fawkes::AspectManager.
Referenced by fawkes::ThreadList::init(), and fawkes::ThreadManager::set_inifin().