|
ucommon
|
Typed smart locked pointer class. More...
#include <thread.h>


Public Member Functions | |
| T * | get (void) |
| Get pointer to object. | |
| mutex_pointer () | |
| Create a pointer with no reference. | |
| mutex_pointer (T *object) | |
| Create a pointer with a reference to a heap object. | |
| T & | operator* () |
| Reference object we are pointing to through pointer indirection. | |
| T * | operator-> () |
| Reference member of object we are pointing to. | |
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.
| ucommon::mutex_pointer< T >::mutex_pointer | ( | T * | object | ) | [inline] |
| T* ucommon::mutex_pointer< T >::get | ( | void | ) | [inline] |
| T& ucommon::mutex_pointer< T >::operator* | ( | ) | [inline] |
| T* ucommon::mutex_pointer< T >::operator-> | ( | ) | [inline] |
1.7.6.1