Templated shared pointer for singleton shared objects of specific type.
More...
#include <thread.h>
|
const T * | dup (void) |
| Acquire a shared (duplocate) reference to the typed singleton object. More...
|
|
T * | operator* () |
| Access shared lock typed singleton object by pointer reference. More...
|
|
void | operator= (T *object) |
| Replace existing typed singleton object through assignment. More...
|
|
void | replace (T *object) |
| Replace existing typed singleton instance with new one. More...
|
|
| shared_pointer () |
| Created shared locking for typed singleton pointer.
|
|
template<class T>
class ucommon::shared_pointer< T >
Templated shared pointer for singleton shared objects of specific type.
This is used as typed template for the SharedPointer object reference management class. This is used to supply a typed singleton shared instance to the typed shared_instance template class.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 1601 of file thread.h.
Acquire a shared (duplocate) reference to the typed singleton object.
This is a form of shared access lock. Derived classes and templates access conditionallock "release" when the shared pointer is no longer needed.
- Returns
- typed shared object.
Definition at line 1616 of file thread.h.
Access shared lock typed singleton object by pointer reference.
- Returns
- typed shared object.
Definition at line 1639 of file thread.h.
Replace existing typed singleton object through assignment.
- Parameters
-
Definition at line 1632 of file thread.h.
Replace existing typed singleton instance with new one.
This happens during exclusive locking, and the commit method of the typed object will be called.
- Parameters
-
Definition at line 1625 of file thread.h.
The documentation for this class was generated from the following file: