CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
MutexI::scoped_lock Class Reference

#include <MutexUtils.h>

Public Member Functions

 scoped_lock (MutexI &im)
 
 ~scoped_lock ()
 

Private Attributes

MutexIm
 

Detailed Description

Definition at line 20 of file MutexUtils.h.

Constructor & Destructor Documentation

MutexI::scoped_lock::scoped_lock ( MutexI im)
inline

Definition at line 23 of file MutexUtils.h.

References MutexI::lock(), and m.

23 :m(im) { m.lock();}
virtual void lock()=0
MutexI::scoped_lock::~scoped_lock ( )
inline

Definition at line 24 of file MutexUtils.h.

References m, and MutexI::unlock().

24 { m.unlock();}
virtual void unlock()=0

Member Data Documentation

MutexI& MutexI::scoped_lock::m
private

Definition at line 21 of file MutexUtils.h.

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