CVD 0.8
Public Member Functions
CVD::Lock Class Reference

A utility class for locking and unlocking Synchronized objects automatically. More...

#include <synchronized.h>

Inheritance diagram for CVD::Lock:
CVD::NoCopy

List of all members.

Public Member Functions

 Lock (const Synchronized &obj)

Detailed Description

A utility class for locking and unlocking Synchronized objects automatically.

A Lock object should be declared on the stack in the same scope as the object to be locked. When the Lock object goes out of scope, the mutex is released. This is especially useful in code that throws exceptions.

Definition at line 41 of file synchronized.h.


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