library of assembled shared sources

http://lass.cocamware.com

lass::util::impl::MutexInternal Class Reference

Inheritance diagram for lass::util::impl::MutexInternal:

Inheritance graph
[legend]
Collaboration diagram for lass::util::impl::MutexInternal:

Collaboration graph
[legend]

Public Member Functions

 MutexInternal ()
 ~MutexInternal ()
void lock ()
const LockResult tryLock ()
void unlock ()
const unsigned lockCount () const
 MutexInternal ()
 ~MutexInternal ()
void lock ()
const LockResult tryLock ()
void unlock ()
const unsigned lockCount () const

Data Fields

pthread_mutex_t mutex_
unsigned lockCount_

Private Member Functions

void swap (NonCopyable &)

Private Attributes

HANDLE mutex_

Detailed Description

Definition at line 97 of file thread_posix.inl.


Constructor & Destructor Documentation

lass::util::impl::MutexInternal::MutexInternal (  )  [inline]

Definition at line 100 of file thread_posix.inl.

References LASS_ENFORCE_CLIB_RC, and mutex_.

lass::util::impl::MutexInternal::~MutexInternal (  )  [inline]

Definition at line 109 of file thread_posix.inl.

References LASS_ASSERT, LASS_WARN_CLIB_RC, lockCount_, and mutex_.

lass::util::impl::MutexInternal::MutexInternal (  )  [inline]

Definition at line 102 of file thread_win32.inl.

References mutex_.

lass::util::impl::MutexInternal::~MutexInternal (  )  [inline]

Definition at line 108 of file thread_win32.inl.

References lass::io::cerr(), LASS_ASSERT, lockCount_, and mutex_.


Member Function Documentation

void lass::util::impl::MutexInternal::lock (  )  [inline]

Definition at line 114 of file thread_posix.inl.

References LASS_ENFORCE_CLIB_RC, lockCount_, and mutex_.

Referenced by lass::util::Mutex::lock().

const LockResult lass::util::impl::MutexInternal::tryLock (  )  [inline]

void lass::util::impl::MutexInternal::unlock (  )  [inline]

Definition at line 134 of file thread_posix.inl.

References LASS_ASSERT, LASS_ENFORCE_CLIB_RC, LASS_THROW, lockCount_, and mutex_.

Referenced by lass::util::Mutex::unlock().

const unsigned lass::util::impl::MutexInternal::lockCount (  )  const [inline]

Definition at line 144 of file thread_posix.inl.

References lockCount_.

Referenced by lass::util::Mutex::isLocked(), and lass::util::Mutex::~Mutex().

void lass::util::impl::MutexInternal::lock (  )  [inline]

Definition at line 120 of file thread_win32.inl.

References lass::io::cerr(), LASS_ASSERT, LASS_THROW, lockCount_, and mutex_.

const LockResult lass::util::impl::MutexInternal::tryLock (  )  [inline]

void lass::util::impl::MutexInternal::unlock (  )  [inline]

Definition at line 176 of file thread_win32.inl.

References LASS_ASSERT, LASS_THROW, lockCount_, and mutex_.

const unsigned lass::util::impl::MutexInternal::lockCount (  )  const [inline]

Definition at line 186 of file thread_win32.inl.

References lockCount_.

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 149 of file thread_posix.inl.

Referenced by lock(), MutexInternal(), tryLock(), unlock(), and ~MutexInternal().

Definition at line 150 of file thread_posix.inl.

Referenced by lock(), lockCount(), tryLock(), unlock(), and ~MutexInternal().

Definition at line 191 of file thread_win32.inl.


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

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