Typed smart locked pointer class.
More...
#include <thread.h>
template<class T>
class ucommon::mutex_pointer< T >
Typed smart locked pointer class.
This is used to manage references to objects which are protected by an auto-generated mutex. The mutex is released when the pointer falls out of scope.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 1829 of file thread.h.
Create a pointer with a reference to a heap object.
- Parameters
-
object | we are referencing. |
Definition at line 1841 of file thread.h.
Get pointer to object.
- Returns
- pointer or NULL if we are not referencing an object.
Definition at line 1861 of file thread.h.
Reference object we are pointing to through pointer indirection.
- Returns
- object we are pointing to.
Definition at line 1847 of file thread.h.
Reference member of object we are pointing to.
- Returns
- reference to member of pointed object.
Definition at line 1854 of file thread.h.
The documentation for this class was generated from the following file: