The StandaloneDispatcher creates a new thread that handles all of the reading and writing to the bus. More...
#include <standalonedispatcher.h>
Public Member Functions | |
~StandaloneDispatcher () | |
Public Member Functions inherited from DBus::Dispatcher | |
virtual | ~Dispatcher () |
Static Public Member Functions | |
static std::shared_ptr< StandaloneDispatcher > | create (bool is_running=true) |
Private Member Functions | |
StandaloneDispatcher (bool is_running=true) | |
Managing Connections | |
void | dispatch_thread_main () |
void | wakeup_thread () |
void | dispatch_connections () |
Dispatch all of our connections. More... | |
DBUS_CXX_PROPAGATE_CONST (std::unique_ptr< priv_data >) m_priv | |
std::shared_ptr< Connection > | create_connection (BusType type) |
std::shared_ptr< Connection > | create_connection (std::string address) |
bool | add_connection (std::shared_ptr< Connection > connection) |
bool | start () |
bool | stop () |
bool | is_running () |
The StandaloneDispatcher creates a new thread that handles all of the reading and writing to the bus.
One dispatcher can handle multiple connections.
|
private |
References is_running(), LOGGER_NAME, SIMPLELOGGER_ERROR, and start().
Referenced by create().
StandaloneDispatcher::~StandaloneDispatcher | ( | ) |
References stop().
|
virtual |
|
static |
References is_running(), and StandaloneDispatcher().
|
virtual |
Implements DBus::Dispatcher.
References add_connection(), DBus::Connection::create(), and DBus::type().
|
virtual |
Implements DBus::Dispatcher.
References add_connection(), and DBus::Connection::create().
|
private |
|
private |
Dispatch all of our connections.
References DBus::COMPLETE, LOGGER_NAME, SIMPLELOGGER_DEBUG, and wakeup_thread().
Referenced by dispatch_thread_main().
|
private |
References dispatch_connections(), LOGGER_NAME, SIMPLELOGGER_DEBUG, and DBus::priv::wait_for_fd_activity().
Referenced by start().
bool StandaloneDispatcher::is_running | ( | ) |
Referenced by create(), and StandaloneDispatcher().
bool StandaloneDispatcher::start | ( | ) |
References dispatch_thread_main().
Referenced by StandaloneDispatcher().
bool StandaloneDispatcher::stop | ( | ) |
References wakeup_thread().
Referenced by ~StandaloneDispatcher().
|
private |
References LOGGER_NAME, and SIMPLELOGGER_ERROR.
Referenced by add_connection(), dispatch_connections(), and stop().