SoDaRadio-12.2.0-cut_dependencies:6c82803
Loading...
Searching...
No Matches
SoDa::ThreadRegistry Class Reference

#include <SoDaThreadRegistry.hxx>

Static Public Member Functions

static ThreadRegistryPtr getRegistrar ()
static void addThread (SoDa::ThreadPtr thread, const std::string &version)
 register a thread so that it can be connected and started
static void apply (std::function< bool(SoDa::ThreadPtr)> f)
static void subscribeThreads (const std::vector< SoDa::MailBoxBasePtr > &mailboxes)
static void startThreads ()
static void joinThreads ()
static void shutDownThreads ()

Private Member Functions

void priv_addThread (SoDa::ThreadPtr thread, const std::string &version)
 register a thread so that it can be connected and started
void priv_apply (std::function< bool(SoDa::ThreadPtr)> f)
void priv_subscribeThreads (const std::vector< SoDa::MailBoxBasePtr > &mailboxes)
void priv_startThreads ()
void priv_joinThreads ()
void priv_shutDownThreads ()
 ThreadRegistry ()

Private Attributes

std::vector< SoDa::ThreadPtrthread_list

Static Private Attributes

static ThreadRegistryPtr registrar

Detailed Description

Definition at line 53 of file SoDaThreadRegistry.hxx.

Constructor & Destructor Documentation

◆ ThreadRegistry()

SoDa::ThreadRegistry::ThreadRegistry ( )
inlineprivate

Definition at line 94 of file SoDaThreadRegistry.hxx.

Member Function Documentation

◆ addThread()

void SoDa::ThreadRegistry::addThread ( SoDa::ThreadPtr thread,
const std::string & version )
static

register a thread so that it can be connected and started

Parameters
threada thread object
versionthe SoDaRadio version the thread object was built with (This must match the version the registry was built with.)

◆ apply()

void SoDa::ThreadRegistry::apply ( std::function< bool(SoDa::ThreadPtr)> f)
static

◆ getRegistrar()

ThreadRegistryPtr SoDa::ThreadRegistry::getRegistrar ( )
static

◆ joinThreads()

void SoDa::ThreadRegistry::joinThreads ( )
static

◆ priv_addThread()

void SoDa::ThreadRegistry::priv_addThread ( SoDa::ThreadPtr thread,
const std::string & version )
private

register a thread so that it can be connected and started

Parameters
threada thread object
versionthe SoDaRadio version the thread object was built with (This must match the version the registry was built with.)

◆ priv_apply()

void SoDa::ThreadRegistry::priv_apply ( std::function< bool(SoDa::ThreadPtr)> f)
private

◆ priv_joinThreads()

void SoDa::ThreadRegistry::priv_joinThreads ( )
private

◆ priv_shutDownThreads()

void SoDa::ThreadRegistry::priv_shutDownThreads ( )
private

◆ priv_startThreads()

void SoDa::ThreadRegistry::priv_startThreads ( )
private

◆ priv_subscribeThreads()

void SoDa::ThreadRegistry::priv_subscribeThreads ( const std::vector< SoDa::MailBoxBasePtr > & mailboxes)
private

◆ shutDownThreads()

void SoDa::ThreadRegistry::shutDownThreads ( )
static

◆ startThreads()

void SoDa::ThreadRegistry::startThreads ( )
static

◆ subscribeThreads()

void SoDa::ThreadRegistry::subscribeThreads ( const std::vector< SoDa::MailBoxBasePtr > & mailboxes)
static

Member Data Documentation

◆ registrar

ThreadRegistryPtr SoDa::ThreadRegistry::registrar
staticprivate

Definition at line 97 of file SoDaThreadRegistry.hxx.

◆ thread_list

std::vector<SoDa::ThreadPtr> SoDa::ThreadRegistry::thread_list
private

Definition at line 96 of file SoDaThreadRegistry.hxx.


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