sigx++ 2.0.1
|
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) |
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.
sigx::shared_dispatchable::DispatcherPtr::DispatcherPtr | ( | shared_dispatchable & | _A_disp | ) | [inline, explicit] |
sigx::shared_dispatchable::DispatcherPtr::operator bool | ( | ) | [inline] |
bool sigx::shared_dispatchable::DispatcherPtr::operator! | ( | ) | [inline] |
bool sigx::shared_dispatchable::DispatcherPtr::operator!= | ( | dispatcher_ptr | other | ) | [inline] |
dispatcher_ptr sigx::shared_dispatchable::DispatcherPtr::operator-> | ( | ) | [inline] |
Returns a plain dispatcher*.