![]() |
Faro Engine 0.0.0.b519570 (main)
|
Container class providing thread-safe access to the internal object. More...
#include <ThreadSafety.hpp>
Public Member Functions | |
| ThreadSafe () | |
| ThreadSafe (T initialValue) | |
| void | Lock () |
| Gain exclusive access to this object. | |
| void | Unlock () |
| Release exclusive access to this object. | |
| void | Set (T value) |
| Set the value of this object. | |
| T | GetCopy () |
| Get a copy of the contained value. | |
| T & | Get () |
| Get a reference to the contained value. | |
| T * | operator-> () |
| Get a pointer to the contained value. | |
Container class providing thread-safe access to the internal object.
| T | Type of the contained data object |
|
inline |
|
inline |
|
inline |
|
inline |
Get a copy of the contained value.
|
inline |
Gain exclusive access to this object.
|
inline |
|
inline |
Set the value of this object.
| value | New value of the object |
|
inline |
Release exclusive access to this object.