Logo ROOT  
Reference Guide
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 ()
  More...
 
 ~TGILRAII ()
  More...
 

Private Types

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

Private Member Functions

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

Private Attributes

voidfPyGILState_STATE = nullptr
  More...
 

Member Typedef Documentation

◆ Py_IsInitialized_type

Definition at line 88 of file TMPClient.cxx.

◆ PyGILState_Ensure_type

Definition at line 89 of file TMPClient.cxx.

◆ PyGILState_Release_type

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.


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