library of assembled shared sources

http://lass.cocamware.com

lass::util::Mutex Class Reference
[Threading]

Mutex. More...

#include <thread.h>

Inheritance diagram for lass::util::Mutex:

Inheritance graph
[legend]
Collaboration diagram for lass::util::Mutex:

Collaboration graph
[legend]

Public Member Functions

 Mutex ()
 ~Mutex ()
void lock ()
const LockResult tryLock ()
void unlock ()
const bool isLocked () const

Private Member Functions

void swap (NonCopyable &)

Private Attributes

impl::MutexInternalpimpl_

Detailed Description

Mutex.

See also:
MutexLocker A mutex is a systemwide synchronization object. It is heavier in use than a critical section. For exception-safe basic use, the MutexLocker can be used.

Definition at line 124 of file thread.h.


Constructor & Destructor Documentation

lass::util::Mutex::Mutex ( void   ) 

Definition at line 64 of file thread.cpp.

References pimpl_.

lass::util::Mutex::~Mutex ( void   ) 


Member Function Documentation

void lass::util::Mutex::lock (  ) 

Definition at line 83 of file thread.cpp.

References LASS_ASSERT, lass::util::impl::MutexInternal::lock(), and pimpl_.

const LockResult lass::util::Mutex::tryLock (  ) 

Definition at line 89 of file thread.cpp.

References LASS_ASSERT, pimpl_, and lass::util::impl::MutexInternal::tryLock().

void lass::util::Mutex::unlock (  ) 

Definition at line 95 of file thread.cpp.

References LASS_ASSERT, pimpl_, and lass::util::impl::MutexInternal::unlock().

const bool lass::util::Mutex::isLocked (  )  const

Definition at line 101 of file thread.cpp.

References LASS_ASSERT, lass::util::impl::MutexInternal::lockCount(), and pimpl_.

void lass::util::NonCopyable::swap ( NonCopyable  )  [inline, protected, inherited]

Definition at line 60 of file non_copyable.h.

Referenced by lass::io::Image::readLine().


Field Documentation

Definition at line 135 of file thread.h.

Referenced by isLocked(), lock(), Mutex(), tryLock(), unlock(), and ~Mutex().


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

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