VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtThreadSafe< T >::LockedProxy Class Reference

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
DtMutexmyMutex
DtScopedLock myLock

Detailed Description

template<typename T>
class DtThreadSafe< T >::LockedProxy

Private class that provides a locked call to the object.

This class should not be extended.

Constructor & Destructor Documentation

template<typename T>
DtThreadSafe< T >::LockedProxy::LockedProxy ( T &  value,
DtMutex mutex 
)

Constructor.

template<typename T>
DtThreadSafe< T >::LockedProxy::LockedProxy ( const LockedProxy orig)

Copy Constructor, should not be necessary for optimized code.

template<typename T>
DtThreadSafe< T >::LockedProxy::~LockedProxy ( )

Destructor, releases lock.

Member Function Documentation

template<typename T>
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.

Member Data Documentation

template<typename T>
DtScopedLock DtThreadSafe< T >::LockedProxy::myLock
protected
template<typename T>
DtMutex& DtThreadSafe< T >::LockedProxy::myMutex
protected
template<typename T>
T* DtThreadSafe< T >::LockedProxy::myValue
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)