sigx::shared_dispatchable::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*.
 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::shared_dispatchable::DispatcherPtr::DispatcherPtr ( shared_dispatchable _A_disp  )  [inline, explicit]


Member Function Documentation

sigx::shared_dispatchable::shared_dispatchable::DispatcherPtr::operator bool (  )  [inline]

bool sigx::shared_dispatchable::shared_dispatchable::DispatcherPtr::operator! (  )  [inline]

bool sigx::shared_dispatchable::shared_dispatchable::DispatcherPtr::operator!= ( dispatcher_ptr  other  )  [inline]

dispatcher_ptr sigx::shared_dispatchable::shared_dispatchable::DispatcherPtr::operator-> (  )  [inline]

Returns a plain dispatcher*.


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

Generated on Wed Jan 28 21:38:00 2009 for sigx++ by  doxygen 1.5.8