Typed smart locked pointer class. More...
#include <thread.h>
Public Member Functions | |
mutex_pointer () | |
Create a pointer with no reference. | |
mutex_pointer (T *object) | |
Create a pointer with a reference to a heap object. | |
T & | operator* () const |
Reference object we are pointing to through pointer indirection. | |
T * | operator-> () const |
Reference member of object we are pointing to. | |
T * | get (void) const |
Get pointer to object. |
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.
Definition at line 2475 of file thread.h.
ucc::mutex_pointer< T >::mutex_pointer | ( | T * | object | ) | [inline] |
T* ucc::mutex_pointer< T >::get | ( | void | ) | const [inline] |
T& ucc::mutex_pointer< T >::operator* | ( | ) | const [inline] |
T* ucc::mutex_pointer< T >::operator-> | ( | ) | const [inline] |