Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
GilSafeSingleLock Class Reference

#include <pythreadstate.h>

Inheritance diagram for GilSafeSingleLock:
CPyThreadState

Public Member Functions

 GilSafeSingleLock (CCriticalSection &critSec)
 
- Public Member Functions inherited from CPyThreadState
 CPyThreadState (bool save=true)
 
 ~CPyThreadState ()
 
void Save ()
 
void Restore ()
 

Detailed Description

A std::unique_lock<CCriticalSection> 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: