![]() |
VR-Link API Documentation for DIS
|
Private class that provides a locked call to the object. More...
Collaboration diagram for DtThreadSafe< T >::LockedProxy:Public Member Functions | |
| LockedProxy (T &value, DtMutex &mutex) | |
| Constructor. | |
| LockedProxy (const LockedProxy &orig) | |
| Copy Constructor, should not be necessary for optimized code. | |
| ~LockedProxy () | |
| Destructor, releases lock. | |
| T * | operator-> () |
| Pointer redirect operator. | |
Protected Attributes | |
| T * | myValue |
| DtMutex & | myMutex |
| DtScopedLock | myLock |
Private class that provides a locked call to the object.
This class should not be extended.
| DtThreadSafe< T >::LockedProxy::LockedProxy | ( | T & | value, |
| DtMutex & | mutex | ||
| ) |
Constructor.
| DtThreadSafe< T >::LockedProxy::LockedProxy | ( | const LockedProxy & | orig | ) |
Copy Constructor, should not be necessary for optimized code.
| DtThreadSafe< T >::LockedProxy::~LockedProxy | ( | ) |
Destructor, releases lock.
| T* DtThreadSafe< T >::LockedProxy::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.
DtScopedLock DtThreadSafe< T >::LockedProxy::myLock [protected] |
DtMutex& DtThreadSafe< T >::LockedProxy::myMutex [protected] |
T* DtThreadSafe< T >::LockedProxy::myValue [protected] |