library of assembled shared sources

http://lass.cocamware.com

lass::util::Locker< LockType > Class Template Reference
[Threading]

#include <thread.h>

Inheritance diagram for lass::util::Locker< LockType >:

Inheritance graph
[legend]
Collaboration diagram for lass::util::Locker< LockType >:

Collaboration graph
[legend]

Public Types

typedef LockType TLock

Public Member Functions

 Locker (TLock &iLock)
 ~Locker ()
TLockmutex ()
void swap (Locker &iOther)
 operator bool () const

Private Attributes

TLocklock_

Related Functions

(Note that these are not member functions.)

template<typename T >
Locker< T > makeLocker (T &iLock)

Detailed Description

template<typename LockType>
class lass::util::Locker< LockType >

Definition at line 399 of file thread.h.


Member Typedef Documentation

template<typename LockType >
typedef LockType lass::util::Locker< LockType >::TLock

Definition at line 402 of file thread.h.


Constructor & Destructor Documentation

template<typename LockType >
lass::util::Locker< LockType >::Locker ( TLock iLock  )  [inline]

Definition at line 403 of file thread.h.

References lass::util::Locker< LockType >::lock_.

template<typename LockType >
lass::util::Locker< LockType >::~Locker (  )  [inline]

Definition at line 408 of file thread.h.

References lass::io::cerr(), and lass::util::Locker< LockType >::lock_.


Member Function Documentation

template<typename LockType >
TLock& lass::util::Locker< LockType >::mutex (  )  [inline]

Definition at line 425 of file thread.h.

References LASS_ASSERT, and lass::util::Locker< LockType >::lock_.

template<typename LockType >
void lass::util::Locker< LockType >::swap ( Locker< LockType > &  iOther  )  [inline]

Definition at line 430 of file thread.h.

References lass::util::Locker< LockType >::lock_.

lass::util::LockerBase::operator bool (  )  const [inline, inherited]

Definition at line 393 of file thread.h.


Field Documentation

template<typename LockType >
TLock* lass::util::Locker< LockType >::lock_ [private]


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

Generated on Mon Nov 10 14:22:17 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo