Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::TGILRAII Class Reference

Class to acquire and release the Python GIL where it applies, i.e.

if libPython is loaded and the interpreter is initialized.

Definition at line 87 of file TMPClient.cxx.

Public Member Functions

 TGILRAII ()
 
 ~TGILRAII ()
 

Private Types

using Py_IsInitialized_type = int(*)(void)
 
using PyGILState_Ensure_type = void *(*)(void)
 
using PyGILState_Release_type = void(*)(void *)
 

Private Member Functions

template<class FPTYPE >
FPTYPE GetSymT (const char *name)
 

Private Attributes

void * fPyGILState_STATE = nullptr
 

Member Typedef Documentation

◆ Py_IsInitialized_type

Definition at line 88 of file TMPClient.cxx.

◆ PyGILState_Ensure_type

using ROOT::Internal::TGILRAII::PyGILState_Ensure_type = void* (*)(void)
private

Definition at line 89 of file TMPClient.cxx.

◆ PyGILState_Release_type

using ROOT::Internal::TGILRAII::PyGILState_Release_type = void (*)(void*)
private

Definition at line 90 of file TMPClient.cxx.

Constructor & Destructor Documentation

◆ TGILRAII()

ROOT::Internal::TGILRAII::TGILRAII ( )
inline

Definition at line 95 of file TMPClient.cxx.

◆ ~TGILRAII()

ROOT::Internal::TGILRAII::~TGILRAII ( )
inline

Definition at line 103 of file TMPClient.cxx.

Member Function Documentation

◆ GetSymT()

template<class FPTYPE >
FPTYPE ROOT::Internal::TGILRAII::GetSymT ( const char *  name)
inlineprivate

Definition at line 93 of file TMPClient.cxx.

Member Data Documentation

◆ fPyGILState_STATE

void* ROOT::Internal::TGILRAII::fPyGILState_STATE = nullptr
private

Definition at line 91 of file TMPClient.cxx.

  • core/multiproc/src/TMPClient.cxx