Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::ScopedLock< Mutex > Class Template Reference

RAII mutex lock. More...

#include <scoped_lock.h>

Inheritance diagram for roc::core::ScopedLock< Mutex >:
Collaboration diagram for roc::core::ScopedLock< Mutex >:

Public Member Functions

 ScopedLock (const Mutex &mutex)
 Lock. More...
 
 ~ScopedLock ()
 Unlock. More...
 

Detailed Description

template<class Mutex>
class roc::core::ScopedLock< Mutex >

RAII mutex lock.

Definition at line 21 of file scoped_lock.h.

Constructor & Destructor Documentation

◆ ScopedLock()

template<class Mutex >
roc::core::ScopedLock< Mutex >::ScopedLock ( const Mutex mutex)
inlineexplicit

Lock.

Definition at line 24 of file scoped_lock.h.

◆ ~ScopedLock()

template<class Mutex >
roc::core::ScopedLock< Mutex >::~ScopedLock ( )
inline

Unlock.

Definition at line 30 of file scoped_lock.h.


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