MutexManaged< T > Class Template Reference
[Classes for basic data types and vectors/arrays (tjutils library)]

#include <tjthread.h>

Inheritance diagram for MutexManaged< T >:

Inheritance graph
[legend]
Collaboration diagram for MutexManaged< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MutexManaged ()
LockProxy< T > operator-> ()
const T * operator-> () const
void set (const T &source)
void get (T &destination) const

Detailed Description

template<class T>
class MutexManaged< T >

Resource with mutually exclusive access from different threads. Access is possible with pointer-like syntax.

Definition at line 131 of file tjthread.h.


Constructor & Destructor Documentation

template<class T>
MutexManaged< T >::MutexManaged (  )  [inline]

Empty resource manager.

Definition at line 138 of file tjthread.h.


Member Function Documentation

template<class T>
LockProxy<T> MutexManaged< T >::operator-> (  )  [inline]

Pointer-like access to member functions.

Definition at line 143 of file tjthread.h.

template<class T>
const T* MutexManaged< T >::operator-> (  )  const [inline]

Pointer-like access to member functions.

Definition at line 148 of file tjthread.h.

template<class T>
void MutexManaged< T >::set ( const T &  source  )  [inline]

Makes resource become a copy of 'source'.

Definition at line 153 of file tjthread.h.

template<class T>
void MutexManaged< T >::get ( T &  destination  )  const [inline]

Copies resource to 'destination'.

Definition at line 158 of file tjthread.h.


The documentation for this class was generated from the following file:
Generated on Sat Jun 14 12:31:46 2008 by  doxygen 1.5.1