DBus::Dispatcher Class Reference
#include <dispatcher_p.h>
Public Member Functions | |
virtual | ~Dispatcher () |
void | queue_connection (Connection::Private *) |
void | dispatch_pending () |
bool | has_something_to_dispatch () |
virtual void | enter ()=0 |
virtual void | leave ()=0 |
virtual Timeout * | add_timeout (Timeout::Internal *)=0 |
virtual void | rem_timeout (Timeout *)=0 |
virtual Watch * | add_watch (Watch::Internal *)=0 |
virtual void | rem_watch (Watch *)=0 |
Static Public Member Functions | |
static dbus_bool_t | on_add_watch (DBusWatch *watch, void *data) |
static void | on_rem_watch (DBusWatch *watch, void *data) |
static void | on_toggle_watch (DBusWatch *watch, void *data) |
static dbus_bool_t | on_add_timeout (DBusTimeout *timeout, void *data) |
static void | on_rem_timeout (DBusTimeout *timeout, void *data) |
static void | on_toggle_timeout (DBusTimeout *timeout, void *data) |
Private Member Functions | |
void | dispatch_pending (Connection::PrivatePList &pending_queue) |
Private Attributes | |
DefaultMutex | _mutex_p |
DefaultMutex | _mutex_p_copy |
Connection::PrivatePList | _pending_queue |
Detailed Description
Definition at line 41 of file dispatcher_p.h.
Constructor & Destructor Documentation
virtual DBus::Dispatcher::~Dispatcher | ( | ) | [inline, virtual] |
Definition at line 155 of file dispatcher.h.
Member Function Documentation
virtual Timeout* DBus::Dispatcher::add_timeout | ( | Timeout::Internal * | ) | [pure virtual] |
Implemented in DBus::Ecore::BusDispatcher, DBus::BusDispatcher, and DBus::Glib::BusDispatcher.
virtual Watch* DBus::Dispatcher::add_watch | ( | Watch::Internal * | ) | [pure virtual] |
Implemented in DBus::Ecore::BusDispatcher, DBus::BusDispatcher, and DBus::Glib::BusDispatcher.
void Dispatcher::dispatch_pending | ( | Connection::PrivatePList & | pending_queue | ) | [private] |
Definition at line 219 of file dispatcher.cpp.
References _mutex_p_copy, DBus::debug_log, DBus::DefaultMutex::lock(), and DBus::DefaultMutex::unlock().
void Dispatcher::dispatch_pending | ( | ) |
Definition at line 182 of file dispatcher.cpp.
References _mutex_p, _pending_queue, DBus::DefaultMutex::lock(), and DBus::DefaultMutex::unlock().
Referenced by dispatcher_dispatch(), DBus::BusDispatcher::do_iteration(), and DBus::Ecore::BusWatch::watch_dispatch().
virtual void DBus::Dispatcher::enter | ( | ) | [pure virtual] |
Implemented in DBus::Ecore::BusDispatcher, DBus::BusDispatcher, and DBus::Glib::BusDispatcher.
bool Dispatcher::has_something_to_dispatch | ( | ) |
Definition at line 166 of file dispatcher.cpp.
References _mutex_p, _pending_queue, DBus::DefaultMutex::lock(), and DBus::DefaultMutex::unlock().
Referenced by dispatcher_prepare().
virtual void DBus::Dispatcher::leave | ( | ) | [pure virtual] |
Implemented in DBus::Ecore::BusDispatcher, DBus::BusDispatcher, and DBus::Glib::BusDispatcher.
static dbus_bool_t DBus::Dispatcher::on_add_timeout | ( | DBusTimeout * | timeout, | |
void * | data | |||
) | [static] |
static dbus_bool_t DBus::Dispatcher::on_add_watch | ( | DBusWatch * | watch, | |
void * | data | |||
) | [static] |
static void DBus::Dispatcher::on_rem_timeout | ( | DBusTimeout * | timeout, | |
void * | data | |||
) | [static] |
static void DBus::Dispatcher::on_rem_watch | ( | DBusWatch * | watch, | |
void * | data | |||
) | [static] |
static void DBus::Dispatcher::on_toggle_timeout | ( | DBusTimeout * | timeout, | |
void * | data | |||
) | [static] |
static void DBus::Dispatcher::on_toggle_watch | ( | DBusWatch * | watch, | |
void * | data | |||
) | [static] |
void Dispatcher::queue_connection | ( | Connection::Private * | cp | ) |
Definition at line 158 of file dispatcher.cpp.
References _mutex_p, _pending_queue, DBus::DefaultMutex::lock(), and DBus::DefaultMutex::unlock().
Referenced by DBus::Connection::setup().
virtual void DBus::Dispatcher::rem_timeout | ( | Timeout * | ) | [pure virtual] |
Implemented in DBus::Ecore::BusDispatcher, DBus::BusDispatcher, and DBus::Glib::BusDispatcher.
virtual void DBus::Dispatcher::rem_watch | ( | Watch * | ) | [pure virtual] |
Implemented in DBus::Ecore::BusDispatcher, DBus::BusDispatcher, and DBus::Glib::BusDispatcher.
Member Data Documentation
DefaultMutex DBus::Dispatcher::_mutex_p [private] |
Definition at line 180 of file dispatcher.h.
Referenced by dispatch_pending(), has_something_to_dispatch(), and queue_connection().
DefaultMutex DBus::Dispatcher::_mutex_p_copy [private] |
Definition at line 181 of file dispatcher.h.
Referenced by dispatch_pending().
Definition at line 183 of file dispatcher.h.
Referenced by dispatch_pending(), has_something_to_dispatch(), and queue_connection().
The documentation for this class was generated from the following files: