sigx++  2.0.1
Public Member Functions
sigx::shared_dispatchable::DispatcherPtr Class Reference

behaves like a dispatcher pointer, ensures threadsafe access to the dispatcher reference. More...

#include <locking_dispatcher_ptr.h>

Public Member Functions

 DispatcherPtr (shared_dispatchable &_A_disp)
 
dispatcher_ptr operator-> ()
 Returns a plain dispatcher*. More...
 
 operator bool ()
 
bool operator! ()
 
bool operator!= (dispatcher_ptr other)
 

Detailed Description

behaves like a dispatcher pointer, ensures threadsafe access to the dispatcher reference.

A DispatcherPtr is constructed from a dispatchable and references the dispatcher of the dispatchable. A read lock ensures threadsafe access to the reference (the owner thread sets a read/write lock when it sets the reference to 0). After you have constructed a DispatcherPtr, you must test for null.

Constructor & Destructor Documentation

sigx::shared_dispatchable::DispatcherPtr::DispatcherPtr ( shared_dispatchable _A_disp)
inlineexplicit

Member Function Documentation

sigx::shared_dispatchable::DispatcherPtr::operator bool ( )
inline
bool sigx::shared_dispatchable::DispatcherPtr::operator! ( )
inline
dispatcher_ptr sigx::shared_dispatchable::DispatcherPtr::operator-> ( )
inline

Returns a plain dispatcher*.


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