sigx++  2.0.1
Protected Member Functions
sigx::auto_dispatchable Class Reference

A dispatchable managing the pointer to the dispatcher. More...

#include <auto_dispatchable.h>

Inheritance diagram for sigx::auto_dispatchable:
sigx::dispatchable sigx::noncopyable sigx::glib_auto_dispatchable

Protected Member Functions

 auto_dispatchable (dispatcher_ptr disp)
 ~auto_dispatchable ()
- Protected Member Functions inherited from sigx::dispatchable
 dispatchable ()
 ~dispatchable () throw ()
void invalidate_tunnels ()
 Invalidate those tunnels (and disconnect them from signals) that have registered themselves with add_dispatcher_change_notify_callback() when the validity tracking was activated.
dispatcher_ptr dispatcher () const throw ()
 non-volatile access to the dispatcher pointer in the current thread

Additional Inherited Members

- Public Types inherited from sigx::dispatchable
typedef void(* func_dispatcher_change_notify )(void *)
- Public Member Functions inherited from sigx::dispatchable
void add_dispatcher_change_notify_callback (void *data, func_dispatcher_change_notify func) const
void remove_dispatcher_change_notify_callback (void *data) const
- Protected Attributes inherited from sigx::dispatchable
internal::rwlockable_dispatcher_ptrm_disp_ptr

Detailed Description

A dispatchable managing the pointer to the dispatcher.

the dispatcher reference is initialized with a dispatcher automatically in the ctor, thus, an auto-dispatchable is especially useful for classes running in the default glib main context. if you need manual control over which dispatcher your derived class should use (like for threads), then use the manual_dispatchable

Note
non-copyable. If you want to pass around the dispatchable then use a sigx::shared_dispatchable instead

Constructor & Destructor Documentation

sigx::auto_dispatchable::auto_dispatchable ( dispatcher_ptr  disp)
protected
sigx::auto_dispatchable::~auto_dispatchable ( )
protected

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