sigx++  2.0.1
Data Structures | Static Public Member Functions | Static Protected Attributes
sigx::connection_handler Class Reference

Stores connections of any client thread to a server thread's signal and destroys them along with the thread's lifetime. More...

#include <connection_handler.h>

Inheritance diagram for sigx::connection_handler:
sigx::noninstantiatable

Data Structures

struct  connections_container_wrapper
 

Static Public Member Functions

static void destroy (const sigc_connection_ptr *handle)
 Destroys a sigc::connection in the context of the server thread. More...
 
static void store (const std::tr1::shared_ptr< sigc_connection_ptr > &_A_refconn, const sigc::connection &c)
 Stores a sigc::connection in the context of the server thread. More...
 

Static Protected Attributes

static Glib::StaticPrivate< connections_container_wrapperthread_specific_connections = GLIBMM_STATIC_PRIVATE_INIT
 

Detailed Description

Stores connections of any client thread to a server thread's signal and destroys them along with the thread's lifetime.

Note
A static class only.

Member Function Documentation

void sigx::connection_handler::destroy ( const sigc_connection_ptr handle)
static

Destroys a sigc::connection in the context of the server thread.

Called when the last connection sharing a sigc::connection goes out of scope and tunnels a message.

Note
message handler for sigx::connection_wrapper::~connection_wrapper().

References sigx::connection_handler::connections_container_wrapper::m_connections, and thread_specific_connections.

Referenced by sigx::connection_wrapper::destroy_self().

void sigx::connection_handler::store ( const std::tr1::shared_ptr< sigc_connection_ptr > &  _A_refconn,
const sigc::connection &  c 
)
static

Field Documentation

Glib::StaticPrivate< connection_handler::connections_container_wrapper > sigx::connection_handler::thread_specific_connections = GLIBMM_STATIC_PRIVATE_INIT
staticprotected

Referenced by destroy(), and store().


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