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.
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
Returns a plain dispatcher*.