![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
#include <SingleLock.h>
Public Member Functions | |
CSingleLock (CCriticalSection &cs) | |
void | Leave () |
void | Enter () |
![]() | |
bool | owns_lock () const |
void | lock () |
bool | try_lock () |
void | unlock () |
CCriticalSection & | get_underlying () |
Protected Member Functions | |
CSingleLock (CCriticalSection &cs, bool dicrim) | |
![]() | |
UniqueLock (CCriticalSection &lockable) | |
UniqueLock (CCriticalSection &lockable, bool try_to_lock_discrim) | |
~UniqueLock () | |
Additional Inherited Members | |
![]() | |
CCriticalSection & | mutex |
bool | owns |
This implements a "guard" pattern for a CCriticalSection that borrows most of it's functionality from boost's unique_lock.
|
inlineexplicit |
|
inlineprotected |
|
inline |
|
inline |