Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CSingleLock Class Reference

#include <SingleLock.h>

Inheritance diagram for CSingleLock:
XbmcThreads::UniqueLock< CCriticalSection > GilSafeSingleLock

Public Member Functions

 CSingleLock (CCriticalSection &cs)
 
void Leave ()
 
void Enter ()
 
- Public Member Functions inherited from XbmcThreads::UniqueLock< CCriticalSection >
bool owns_lock () const
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 
CCriticalSectionget_underlying ()
 

Protected Member Functions

 CSingleLock (CCriticalSection &cs, bool dicrim)
 
- Protected Member Functions inherited from XbmcThreads::UniqueLock< CCriticalSection >
 UniqueLock (CCriticalSection &lockable)
 
 UniqueLock (CCriticalSection &lockable, bool try_to_lock_discrim)
 
 ~UniqueLock ()
 

Additional Inherited Members

- Protected Attributes inherited from XbmcThreads::UniqueLock< CCriticalSection >
CCriticalSectionmutex
 
bool owns
 

Detailed Description

This implements a "guard" pattern for a CCriticalSection that borrows most of it's functionality from boost's unique_lock.

Constructor & Destructor Documentation

◆ CSingleLock() [1/2]

CSingleLock::CSingleLock ( CCriticalSection cs)
inlineexplicit

◆ CSingleLock() [2/2]

CSingleLock::CSingleLock ( CCriticalSection cs,
bool  dicrim 
)
inlineprotected

Member Function Documentation

◆ Enter()

void CSingleLock::Enter ( )
inline

◆ Leave()

void CSingleLock::Leave ( )
inline

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