Thread to synchronize two BlackBoards. More...
#include "sync_thread.h"
Classes | |
struct | combo_t |
class | InterfaceInfo |
Public Member Functions | |
BlackBoardSynchronizationThread (std::string &bbsync_cfg_prefix, std::string &peer_cfg_prefix, std::string &peer) | |
Constructor. | |
virtual | ~BlackBoardSynchronizationThread () |
Destructor. | |
virtual void | init () |
virtual void | loop () |
virtual void | finalize () |
void | writer_added (fawkes::Interface *interface) throw () |
A writer has been added for an interface. | |
void | writer_removed (fawkes::Interface *interface) throw () |
A writer has been removed for an interface. | |
Protected Member Functions | |
virtual void | run () |
Stub to see name in backtrace for easier debugging. |
Thread to synchronize two BlackBoards.
Definition at line 44 of file sync_thread.h.
BlackBoardSynchronizationThread::BlackBoardSynchronizationThread | ( | std::string & | bbsync_cfg_prefix, | |
std::string & | peer_cfg_prefix, | |||
std::string & | peer | |||
) |
Constructor.
bbsync_cfg_prefix | Configuration prefix for the whole bbsync plugin | |
peer_cfg_prefix | The configuration prefix for the peer this sync thread has been created for. | |
peer | name of the peer configuration for this thread |
Definition at line 45 of file sync_thread.cpp.
References fawkes::Thread::set_name(), and fawkes::Thread::set_prepfin_conc_loop().
BlackBoardSynchronizationThread::~BlackBoardSynchronizationThread | ( | ) | [virtual] |
Destructor.
Definition at line 62 of file sync_thread.cpp.
virtual void BlackBoardSynchronizationThread::run | ( | ) | [inline, protected, virtual] |
Stub to see name in backtrace for easier debugging.
Definition at line 64 of file sync_thread.h.
void BlackBoardSynchronizationThread::writer_added | ( | fawkes::Interface * | interface | ) | throw () |
A writer has been added for an interface.
To be called only by SyncWriterInterfaceListener.
interface | the interface a writer has been added for. |
Definition at line 305 of file sync_thread.cpp.
void BlackBoardSynchronizationThread::writer_removed | ( | fawkes::Interface * | interface | ) | throw () |
A writer has been removed for an interface.
To be called only by SyncWriterInterfaceListener.
interface | the interface a writer has been removed for. |
Definition at line 349 of file sync_thread.cpp.