
Reimplements DBus::Dispatcher to conduct all dispatching in the provided Glib MainContext if one is provided or in the default context otherwise. More...
#include <dispatcher.h>

Public Types | |
| typedef DBusCxxPointer < Dispatcher > | pointer |
| typedef DBusCxxPointer< const Dispatcher > | const_pointer |
Public Member Functions | |
| Dispatcher (bool is_running=true) | |
| Dispatcher (bool is_running, const ::Glib::RefPtr< ::Glib::MainContext > &context) | |
| virtual | ~Dispatcher () |
Static Public Member Functions | |
| static pointer | create (bool is_running=true) |
| static pointer | create (bool is_running, const ::Glib::RefPtr< ::Glib::MainContext > &context) |
Protected Member Functions | |
| virtual void | dispatch_thread_main () |
| void | on_glibmm_dispatch () |
Protected Attributes | |
| ::Glib::Dispatcher | m_glibmm_dispatcher |
| pthread_cond_t | m_cond_glibmm_processing |
| pthread_mutex_t | m_mutex_glibmm_processing |
Reimplements DBus::Dispatcher to conduct all dispatching in the provided Glib MainContext if one is provided or in the default context otherwise.
This class still creates multiple threads for handling I/O file descriptors and for controlling dispatching. However, the actual dispatching will occur in the provided context' main loop.
| typedef DBusCxxPointer<const Dispatcher> DBus::Glib::Dispatcher::const_pointer |
Reimplemented from DBus::Dispatcher.
| typedef DBusCxxPointer<Dispatcher> DBus::Glib::Dispatcher::pointer |
Reimplemented from DBus::Dispatcher.
| DBus::Glib::Dispatcher::Dispatcher | ( | bool | is_running = true |
) |
Reimplemented from DBus::Dispatcher.
References m_cond_glibmm_processing, m_glibmm_dispatcher, m_mutex_glibmm_processing, on_glibmm_dispatch(), and DBus::Dispatcher::start().
Referenced by create().
| DBus::Glib::Dispatcher::Dispatcher | ( | bool | is_running, | |
| const ::Glib::RefPtr< ::Glib::MainContext > & | context | |||
| ) |
| DBus::Glib::Dispatcher::~Dispatcher | ( | ) | [virtual] |
Reimplemented from DBus::Dispatcher.
References DBus::Dispatcher::is_running(), and DBus::Dispatcher::stop().
| Dispatcher::pointer DBus::Glib::Dispatcher::create | ( | bool | is_running, | |
| const ::Glib::RefPtr< ::Glib::MainContext > & | context | |||
| ) | [static] |
References Dispatcher().
| Dispatcher::pointer DBus::Glib::Dispatcher::create | ( | bool | is_running = true |
) | [static] |
Reimplemented from DBus::Dispatcher.
References Dispatcher().
| void DBus::Glib::Dispatcher::dispatch_thread_main | ( | ) | [protected, virtual] |
| void DBus::Glib::Dispatcher::on_glibmm_dispatch | ( | ) | [protected] |
References DBUS_CXX_DEBUG, DBus::DISPATCH_COMPLETE, DBus::DISPATCH_DATA_REMAINS, m_cond_glibmm_processing, DBus::Dispatcher::m_connections, DBus::Dispatcher::m_dispatch_loop_limit, DBus::Dispatcher::m_initiate_processing, m_mutex_glibmm_processing, and DBus::Dispatcher::m_mutex_initiate_processing.
Referenced by Dispatcher().
pthread_cond_t DBus::Glib::Dispatcher::m_cond_glibmm_processing [protected] |
Referenced by dispatch_thread_main(), Dispatcher(), and on_glibmm_dispatch().
::Glib::Dispatcher DBus::Glib::Dispatcher::m_glibmm_dispatcher [protected] |
Referenced by dispatch_thread_main(), and Dispatcher().
pthread_mutex_t DBus::Glib::Dispatcher::m_mutex_glibmm_processing [protected] |
Referenced by dispatch_thread_main(), Dispatcher(), and on_glibmm_dispatch().
1.6.1