|
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
#include <Lockables.h>
Protected Member Functions | |
| SharedLock (L &lockable) | |
| ~SharedLock () | |
| bool | owns_lock () const |
| void | lock () |
| bool | try_lock () |
| void | unlock () |
| L & | get_underlying () |
Protected Attributes | |
| L & | mutex |
| bool | owns |
This template can be used to define the base implementation for any SharedLock (such as CSharedLock) that uses a Shared Lockable as its mutex/critical section.
Something that implements the "Shared Lockable" concept has all of the methods required by the Lockable concept and also:
void lock_shared(); bool try_lock_shared(); void unlock_shared();
|
inlineexplicitprotected |
|
inlineprotected |
|
inlineprotected |
See the note on the same method on CountingLockable
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
protected |
|
protected |