Fawkes API  Fawkes Development Version
fawkes::ThreadInitializer Class Referenceabstract

Thread initializer interface. More...

#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
 This method is called by the ThreadManager for each newly added Thread. More...
 

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 41 of file thread_initializer.h.

Constructor & Destructor Documentation

◆ ~ThreadInitializer()

fawkes::ThreadInitializer::~ThreadInitializer ( )
virtual

Virtual empty destructor.

Definition at line 74 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.

Referenced by fawkes::ThreadList::init(), and fawkes::ThreadManager::set_inifin().


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