Public Types | |
typedef TLockableObjectOwner < TReentrantLockableObject < Base > > | Owner |
typedef TLockableObjectConditionalOwner < TReentrantLockableObject < Base > > | ConditionalOwner |
typedef TReentrantLockableObjectPotentialOwner < TReentrantLockableObject < Base > > | PotentialOwner |
Public Member Functions | |
TReentrantLockableObject () | |
Creates a lockable object. | |
TReentrantLockableObject (const TReentrantLockableObject &rhs) | |
~TReentrantLockableObject () | |
TReentrantLockableObject & | operator= (const TReentrantLockableObject &rhs) |
bool | TryLock () |
void | Lock () |
void | Unlock () |
Protected Attributes | |
std::recursive_mutex | m_lock |
typedef TLockableObjectOwner<TReentrantLockableObject<Base> > Owner |
Creates a lockable object.
TReentrantLockableObject | ( | const TReentrantLockableObject< Base > & | rhs | ) |
TReentrantLockableObject& operator= | ( | const TReentrantLockableObject< Base > & | rhs | ) |
bool TryLock | ( | ) | [inline] |
void Lock | ( | ) | [inline] |
void Unlock | ( | ) | [inline] |
std::recursive_mutex m_lock [protected] |