Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

IDEA::Guard< LOCK > Class Template Reference
[Utilities]

This data structure is meant to be used within a method or function. It performs automatic aquisition and release of a parameterized synchronization object <LOCK>. More...

#include <ThreadTools.hh>

List of all members.

Public Methods

 Guard (LOCK &lock, const std::string &locator="unknown")
 Constructor and acquires a lock on LOCK.

 ~Guard ()
 Detructor and releases a lock on LOCK.


Private Methods

 Guard ()
 Default constructor, not implemented by design.

 Guard (const Guard &)
 Copy constructor, not implemented by design.

Guard & operator= (const Guard &)
 Assignment operator, not implemented by design.


Private Attributes

LOCK & m_Lock


Detailed Description

template<class LOCK>
class IDEA::Guard< LOCK >

This data structure is meant to be used within a method or function. It performs automatic aquisition and release of a parameterized synchronization object <LOCK>.

class Guard


Constructor & Destructor Documentation

template<class LOCK>
IDEA::Guard< LOCK >::Guard LOCK &    lock,
const std::string &    locator = "unknown"
[inline]
 

Constructor and acquires a lock on LOCK.

template<class LOCK>
IDEA::Guard< LOCK >::~Guard   [inline]
 

Detructor and releases a lock on LOCK.

template<class LOCK>
IDEA::Guard< LOCK >::Guard   [private]
 

Default constructor, not implemented by design.

template<class LOCK>
IDEA::Guard< LOCK >::Guard const Guard< LOCK > &    [private]
 

Copy constructor, not implemented by design.


Member Function Documentation

template<class LOCK>
Guard& IDEA::Guard< LOCK >::operator= const Guard< LOCK > &    [private]
 

Assignment operator, not implemented by design.


Member Data Documentation

template<class LOCK>
LOCK& IDEA::Guard< LOCK >::m_Lock [private]
 


Contact information
© IDEA
Generated on Fri Feb 3 17:09:45 2006 for IDEA.