sigx++ 2.0.1
|
thread safe dispatcher reference that can be passed around. More...
#include <shared_dispatchable.h>
Data Structures | |
class | DispatcherPtr |
behaves like a dispatcher pointer, ensures threadsafe access to the dispatcher reference. More... | |
Public Member Functions | |
shared_dispatchable () | |
shared_dispatchable (const dispatchable &d) throw () | |
Copy construct from any dispatchable. | |
shared_dispatchable & | operator= (const dispatchable &d) throw () |
Assign from any dispatchable. | |
Friends | |
struct | DispatcherPtr |
class | tunnel_validity_tracker |
thread safe dispatcher reference that can be passed around.
A shared dispatchable holds either a copy of another dispatchable or the dispatcher itself is only accessible by constructing a shared_dispatchable::DispatcherPtr.
// threadsafe shared_dispatchable::DispatcherPtr dispatcher(shareddisp); // not threadsafe shareddisp = mydisp;
sigx::shared_dispatchable::shared_dispatchable | ( | ) |
Might | throw a std::bad_alloc exception (from dispatchable's ctor) |
sigx::shared_dispatchable::shared_dispatchable | ( | const dispatchable & | d | ) | throw () |
Copy construct from any dispatchable.
shared_dispatchable & sigx::shared_dispatchable::operator= | ( | const dispatchable & | d | ) | throw () |
Assign from any dispatchable.
Reimplemented from sigx::dispatchable.
friend struct DispatcherPtr [friend] |
friend class tunnel_validity_tracker [friend] |