PIP 5.9.0
Platform-Independent Primitives
Loading...
Searching...
No Matches
PIProtectedVariable< T >::Pointer Class Reference

Pointer-like wrapper returned by getRef() while the protected value remains locked. More...

#include <piprotectedvariable.h>

Public Member Functions

 Pointer (Pointer &&other)
 Move constructor - transfers ownership of the lock.
 ~Pointer ()
 Destroys wrapper and releases the mutex.
T * operator-> ()
 Returns pointer access to the protected value.
T & operator* ()
 Returns reference access to the protected value.

Detailed Description

template<typename T>
class PIProtectedVariable< T >::Pointer

Pointer-like wrapper returned by getRef() while the protected value remains locked.