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 42 of file Lock.h.


Constructor & Destructor Documentation

Lock::Lock ( const IMutex m  ) 

Definition at line 38 of file Lock.cpp.

References IMutex::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 IMutex::Unlock().

00045 {
00046         m_mutex.Unlock();
00047 }


Member Data Documentation

const IMutex& 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