Logo
~Sockets~
~Examples~
~Contact~


Lock Class Reference
[Threading]

IMutex encapsulation class. More...

#include <Lock.h>

Collaboration diagram for Lock:

List of all members.


Public Member Functions

 Lock (const IMutex &)
 ~Lock ()

Private Attributes

const IMutexm_mutex

Detailed Description

IMutex encapsulation class.

Definition at line 44 of file Lock.h.


Constructor & Destructor Documentation

Lock::Lock ( const IMutex m  ) 

Definition at line 40 of file Lock.cpp.

References IMutex::Lock(), and m_mutex.

00040                           : m_mutex(m)
00041 {
00042         m_mutex.Lock();
00043 }

Lock::~Lock (  ) 

Definition at line 46 of file Lock.cpp.

References m_mutex, and IMutex::Unlock().

00047 {
00048         m_mutex.Unlock();
00049 }


Member Data Documentation

const IMutex& Lock::m_mutex [private]

Definition at line 51 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