Shaka Player Embedded
Public Member Functions | Public Attributes | List of all members
shaka::util::Unlocker< _Mutex > Struct Template Reference

#include <utils.h>

Public Member Functions

 Unlocker (std::unique_lock< _Mutex > *lock)
 
 ~Unlocker ()
 
 SHAKA_NON_COPYABLE_OR_MOVABLE_TYPE (Unlocker)
 

Public Attributes

std::unique_lock< _Mutex > * lock_
 

Detailed Description

template<typename _Mutex>
struct shaka::util::Unlocker< _Mutex >

A helper that unlocks the given Lock and in the destructor, locks it again.

Definition at line 59 of file utils.h.

Constructor & Destructor Documentation

§ Unlocker()

template<typename _Mutex>
shaka::util::Unlocker< _Mutex >::Unlocker ( std::unique_lock< _Mutex > *  lock)
inlineexplicit

Definition at line 60 of file utils.h.

§ ~Unlocker()

template<typename _Mutex>
shaka::util::Unlocker< _Mutex >::~Unlocker ( )
inline

Definition at line 64 of file utils.h.

Member Function Documentation

§ SHAKA_NON_COPYABLE_OR_MOVABLE_TYPE()

template<typename _Mutex>
shaka::util::Unlocker< _Mutex >::SHAKA_NON_COPYABLE_OR_MOVABLE_TYPE ( Unlocker< _Mutex >  )

Member Data Documentation

§ lock_

template<typename _Mutex>
std::unique_lock<_Mutex>* shaka::util::Unlocker< _Mutex >::lock_

Definition at line 70 of file utils.h.


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