CVD::Lock Struct Reference

#include <synchronized.h>

List of all members.

Public Member Functions

 Lock (const Synchronized &obj)
virtual ~Lock ()

Public Attributes

const SynchronizedmyObject

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 40 of file synchronized.h.


Constructor & Destructor Documentation

CVD::Lock::Lock ( const Synchronized obj  )  [inline]

Definition at line 42 of file synchronized.h.

virtual CVD::Lock::~Lock (  )  [inline, virtual]

Definition at line 43 of file synchronized.h.


Member Data Documentation

Definition at line 41 of file synchronized.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


libcvd
Author(s): Edward Rosten, Paul Smith, Tom Drummond, Gerhard Reitmayr, Ethan Eade, Timothy Gan, Chris Kemp, Georg Klein
autogenerated on Fri Jan 11 09:13:51 2013