CMS 3D CMS Logo

Public Member Functions | Private Attributes

MutexI::scoped_lock Class Reference

#include <MutexUtils.h>

List of all members.

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.

:m(im) { m.lock();}
MutexI::scoped_lock::~scoped_lock ( ) [inline]

Definition at line 24 of file MutexUtils.h.

References m, and MutexI::unlock().

{ m.unlock();}

Member Data Documentation

Definition at line 21 of file MutexUtils.h.

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