Thea
Public Types | Public Member Functions | List of all members
ScopedLock< LockT > Class Template Reference

A wrapper for a shared lock object that acquires the lock upon construction and releases it upon destruction. More...

#include <ScopedLock.hpp>

Public Types

typedef LockT Lock
 The wrapped lock class. More...
 

Public Member Functions

 ScopedLock (LockT *lock_)
 Constructor, which acquires the lock. More...
 
 ~ScopedLock ()
 Destructor, which releases the lock. More...
 

Detailed Description

template<typename LockT>
class Thea::ScopedLock< LockT >

A wrapper for a shared lock object that acquires the lock upon construction and releases it upon destruction.

Definition at line 22 of file ScopedLock.hpp.

Member Typedef Documentation

typedef LockT Lock

The wrapped lock class.

Definition at line 25 of file ScopedLock.hpp.

Constructor & Destructor Documentation

ScopedLock ( LockT *  lock_)

Constructor, which acquires the lock.

The wrapped lock object must persist as long as this wrapper does.

Definition at line 28 of file ScopedLock.hpp.

~ScopedLock ( )

Destructor, which releases the lock.

Definition at line 35 of file ScopedLock.hpp.


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