SGGuard< SGLOCK > Class Template Reference

A scoped locking utility. More...

#include <SGGuard.hxx>

List of all members.

Public Member Functions

 SGGuard (SGLOCK &l)
 Create an SGGuard object and lock the passed lockable object.
 ~SGGuard ()
 Destroy this object and unlock the locakable object.

Detailed Description

template<class SGLOCK>
class SGGuard< SGLOCK >

A scoped locking utility.

An SGGuard object locks its synchronization object during creation and automatically unlocks it when it goes out of scope.

Definition at line 10 of file SGGuard.hxx.


Constructor & Destructor Documentation

template<class SGLOCK>
SGGuard< SGLOCK >::SGGuard ( SGLOCK &  l  )  [inline]

Create an SGGuard object and lock the passed lockable object.

Parameters:
SGLOCK A lockable object.

Definition at line 18 of file SGGuard.hxx.


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

Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1