Logo
~Sockets~
~Examples~
~Contact~


Lock Class Reference
[Threading]

Mutex encapsulation class. More...

#include <Lock.h>

Collaboration diagram for Lock:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Lock (Mutex &)
 ~Lock ()

Private Attributes

Mutexm_mutex

Detailed Description

Mutex encapsulation class.

Definition at line 42 of file Lock.h.


Constructor & Destructor Documentation

Lock::Lock ( Mutex  ) 

Definition at line 38 of file Lock.cpp.

References Mutex::Lock, and m_mutex.

00038                    : m_mutex(m)
00039 {
00040         m_mutex.Lock();
00041 }

Lock::~Lock (  ) 

Definition at line 44 of file Lock.cpp.

References m_mutex, and Mutex::Unlock().

00045 {
00046         m_mutex.Unlock();
00047 }


Member Data Documentation

Mutex& Lock::m_mutex [private]

Definition at line 49 of file Lock.h.

Referenced by Lock(), and ~Lock().


The documentation for this class was generated from the following files:
Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4