DUNE: Uniform Navigational Environment  2016.03.0
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().

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

Destruct the object, unlocking the associated mutex.

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

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