DUNE: Uniform Navigational Environment  2019.02.1
DUNE::Concurrency::ScopedMutex Class Reference

Detailed Description

Scoped Mutex.

Public Member Functions

 ScopedMutex (Mutex &l)
 
 ~ScopedMutex (void)
 

Constructor & Destructor Documentation

DUNE::Concurrency::ScopedMutex::ScopedMutex ( Mutex l)
inline

Construct the object, locking the associated mutex.

Parameters
lassociated mutex.

References DUNE::Concurrency::Mutex::lock().

Referenced by ~ScopedMutex().

DUNE::Concurrency::ScopedMutex::~ScopedMutex ( void  )
inline

Destruct the object, unlocking the associated mutex.

References ScopedMutex(), and DUNE::Concurrency::Mutex::unlock().

Collaboration diagram for DUNE::Concurrency::ScopedMutex:
Collaboration graph