ders::auto_mutex Class Reference

Helper class for exception-safe mutex locking. More...

#include <thread.hpp>

List of all members.

Public Member Functions

 auto_mutex (mutex &m)
 ~auto_mutex ()


Detailed Description

Helper class for exception-safe mutex locking.

Definition at line 77 of file thread.hpp.


Constructor & Destructor Documentation

ders::auto_mutex::auto_mutex ( mutex m  )  [inline]

Definition at line 84 of file thread.hpp.

00084 : mtx(m) { mtx.lock(); }

ders::auto_mutex::~auto_mutex (  )  [inline]

Definition at line 85 of file thread.hpp.

00085 { mtx.unlock(); }


The documentation for this class was generated from the following file:

Generated on Tue Dec 8 11:35:33 2009 for derslib by  doxygen 1.5.5