Fawkes API  Fawkes Development Version
fawkes::ThreadInitializer Class Referenceabstract

#include <core/threading/thread_initializer.h>

Inheritance diagram for fawkes::ThreadInitializer:

Public Member Functions

virtual ~ThreadInitializer ()
 Virtual empty destructor. More...
 
virtual void init (Thread *thread)=0
 

Detailed Description

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.

Author
Tim Niemueller

Definition at line 45 of file thread_initializer.h.

Constructor & Destructor Documentation

◆ ~ThreadInitializer()

fawkes::ThreadInitializer::~ThreadInitializer ( )
virtual

Virtual empty destructor.

Definition at line 82 of file thread_initializer.cpp.

Member Function Documentation

◆ init()

void fawkes::ThreadInitializer::init ( Thread thread)
pure virtual

This method is called by the ThreadManager for each newly added Thread.

Parameters
threadthread to initialize.
Exceptions
CannotInitializeThreadthrown if thread can for not be initialized

Implemented in fawkes::AspectManager.


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