Public Member Functions

cmtk::MutexLock Class Reference
[cmtkSystem Library]

Generic mutex lock. More...

#include <cmtkMutexLock.h>

Inheritance diagram for cmtk::MutexLock:
Inheritance graph
[legend]
Collaboration diagram for cmtk::MutexLock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MutexLock ()
 Constructor: initialize low-level lock.
 ~MutexLock ()
 Destructor: clean up low-level lock.
void Lock ()
 Lock: if already locked, wait until unlocked, then lock.
void Unlock ()
 Unlock.

Detailed Description

Generic mutex lock.

This class represents a thread-model independent wrapper for locks on data that requires mutually exclusive access.

Definition at line 59 of file cmtkMutexLock.h.


Constructor & Destructor Documentation

cmtk::MutexLock::MutexLock (  ) [inline]

Constructor: initialize low-level lock.

Definition at line 65 of file cmtkMutexLock.h.

References NULL.

cmtk::MutexLock::~MutexLock (  ) [inline]

Destructor: clean up low-level lock.

Definition at line 82 of file cmtkMutexLock.h.


Member Function Documentation

void cmtk::MutexLock::Lock (  ) [inline]

Lock: if already locked, wait until unlocked, then lock.

Definition at line 94 of file cmtkMutexLock.h.

Referenced by cmtk::ThreadPool::ThreadFunction().

void cmtk::MutexLock::Unlock (  ) [inline]

Unlock.

Definition at line 106 of file cmtkMutexLock.h.

Referenced by cmtk::ThreadPool::ThreadFunction().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines