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

#include <pythreadstate.h>

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

Public Member Functions

 GilSafeSingleLock (CCriticalSection &critSec)
 
- Public Member Functions inherited from CPyThreadState
 CPyThreadState (bool save=true)
 
 ~CPyThreadState ()
 
void Save ()
 
void Restore ()
 
- Public Member Functions inherited from CSingleLock
 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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from CSingleLock
 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 ()
 
- Protected Attributes inherited from XbmcThreads::UniqueLock< CCriticalSection >
CCriticalSectionmutex
 
bool owns
 

Detailed Description

A CSingleLock that will relinquish the GIL during the time it takes to obtain the CriticalSection

Constructor & Destructor Documentation

◆ GilSafeSingleLock()

GilSafeSingleLock::GilSafeSingleLock ( CCriticalSection critSec)
inlineexplicit

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