TC::MT::LockerPtr< T > Class Template Reference
[Multithreading]

Locking object for Pointers. More...

#include <TCMTLock.h>

Inheritance diagram for TC::MT::LockerPtr< T >:

Inheritance graph
[legend]
Collaboration diagram for TC::MT::LockerPtr< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LockerPtr (T critical)
 Constructs a Locker object.
 ~LockerPtr ()
 Destructs the Locker object and unlocks the critical section associated with this object.

Private Attributes

m_critical
 Pointer to the critical section used by this object.


Detailed Description

template<class T>
class TC::MT::LockerPtr< T >

Locking object for Pointers.

See also:
TC::MT::LockRef

Definition at line 129 of file TCMTLock.h.


Constructor & Destructor Documentation

template<class T >
TC::MT::LockerPtr< T >::LockerPtr ( critical  )  [inline]

Constructs a Locker object.

The critical object is automatically locked.

Parameters:
critical The reference of the object locked by this constructor.

Definition at line 138 of file TCMTLock.h.

References TC::MT::LockerPtr< T >::m_critical.

template<class T >
TC::MT::LockerPtr< T >::~LockerPtr (  )  [inline]

Destructs the Locker object and unlocks the critical section associated with this object.

Definition at line 148 of file TCMTLock.h.

References TC::MT::LockerPtr< T >::m_critical.


Member Data Documentation

template<class T >
T TC::MT::LockerPtr< T >::m_critical [private]

Pointer to the critical section used by this object.

Definition at line 155 of file TCMTLock.h.

Referenced by TC::MT::LockerPtr< T >::LockerPtr(), and TC::MT::LockerPtr< T >::~LockerPtr().


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

Copyright (c) Thomas Goessler 2003 - 2008