ScopedLock Class Reference

This class implements an exception-safe scoped lock-keeper. More...

#include <locks.hh>

Public Member Functions

 ScopedLock (OmpMutex &m)
 
 ~ScopedLock ()
 
void operator= (const ScopedLock &)=delete
 
 ScopedLock (const ScopedLock &)=delete
 
void unlock ()
 
void lockAgain ()
 

Detailed Description

This class implements an exception-safe scoped lock-keeper.

Constructor & Destructor Documentation

ScopedLock::ScopedLock ( OmpMutex m)
inlineexplicit

References OmpMutex::lock().

ScopedLock::~ScopedLock ( )
inline

References unlock().

ScopedLock::ScopedLock ( const ScopedLock )
delete

Member Function Documentation

void ScopedLock::lockAgain ( )
inline

References OmpMutex::lock().

void ScopedLock::operator= ( const ScopedLock )
delete

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