![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
#include <Lockables.h>
Public Member Functions | |
bool | owns_lock () const |
void | lock () |
bool | try_lock () |
void | unlock () |
L & | get_underlying () |
Protected Member Functions | |
UniqueLock (L &lockable) | |
UniqueLock (L &lockable, bool try_to_lock_discrim) | |
~UniqueLock () | |
Protected Attributes | |
L & | mutex |
bool | owns |
This template can be used to define the base implementation for any UniqueLock (such as CSingleLock) that uses a Lockable as its mutex/critical section.
|
inlineexplicitprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
See the note on the same method on CountingLockable
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |