![]() |
VR-Link API Documentation for HLA 1.3
|
Private class that provides a locked call to the const object. More...
Collaboration diagram for DtThreadSafe< T >::ConstLockedProxy:Public Member Functions | |
| ConstLockedProxy (const T &value, DtMutex &mutex) | |
| Constructor. | |
| ConstLockedProxy (const ConstLockedProxy &orig) | |
| Copy Constructor, should not be necessary for optimized code. | |
| ~ConstLockedProxy () | |
| Destructor, releases lock. | |
| const T * | operator-> () |
| Pointer redirect operator. | |
Protected Attributes | |
| const T * | myValue |
| DtMutex & | myMutex |
| DtScopedLock | myLock |
Private class that provides a locked call to the const object.
This class should not be extended.
| DtThreadSafe< T >::ConstLockedProxy::ConstLockedProxy | ( | const T & | value, |
| DtMutex & | mutex | ||
| ) |
Constructor.
| DtThreadSafe< T >::ConstLockedProxy::ConstLockedProxy | ( | const ConstLockedProxy & | orig | ) |
Copy Constructor, should not be necessary for optimized code.
| DtThreadSafe< T >::ConstLockedProxy::~ConstLockedProxy | ( | ) |
Destructor, releases lock.
| const T* DtThreadSafe< T >::ConstLockedProxy::operator-> | ( | ) |
Pointer redirect operator.
This allows access to the locked object. A pointer to the object should NOT be stored, or passed to functions unless they are known to not maintain a copy.
|
protected |
|
protected |
|
protected |