dbus-cxx logo

DBus::Glib::Dispatcher Class Reference

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>

Inheritance diagram for DBus::Glib::Dispatcher:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>

Member Typedef Documentation

typedef DBusCxxPointer<const Dispatcher> DBus::Glib::Dispatcher::const_pointer

Reimplemented from DBus::Dispatcher.

Reimplemented from DBus::Dispatcher.


Constructor & Destructor Documentation

DBus::Glib::Dispatcher::Dispatcher ( bool  is_running = true  ) 
DBus::Glib::Dispatcher::Dispatcher ( bool  is_running,
const ::Glib::RefPtr< ::Glib::MainContext > &  context 
)
DBus::Glib::Dispatcher::~Dispatcher (  )  [virtual]

Member Function Documentation

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]

Member Data Documentation

Referenced by dispatch_thread_main(), and Dispatcher().


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

Generated on Mon Sep 21 11:00:17 2009 for dbus-cxx by doxygen 1.6.1