Version: 9.16.0
YACS::ENGINE::InterpreterUnlocker Class Reference

#include <PythonPorts.hxx>

Collaboration diagram for YACS::ENGINE::InterpreterUnlocker:

Public Member Functions

 InterpreterUnlocker ()
 
 ~InterpreterUnlocker ()
 

Private Attributes

PyGILState_STATE gstate_
 

Detailed Description

Definition at line 33 of file PythonPorts.hxx.

Constructor & Destructor Documentation

◆ InterpreterUnlocker()

YACS::ENGINE::InterpreterUnlocker::InterpreterUnlocker ( )
inline

Definition at line 36 of file PythonPorts.hxx.

36 {
37 gstate_ = PyGILState_Ensure();
38 }

References gstate_.

◆ ~InterpreterUnlocker()

YACS::ENGINE::InterpreterUnlocker::~InterpreterUnlocker ( )
inline

Definition at line 39 of file PythonPorts.hxx.

39 {
40 PyGILState_Release(gstate_);
41 }

References gstate_.

Member Data Documentation

◆ gstate_

PyGILState_STATE YACS::ENGINE::InterpreterUnlocker::gstate_
private

Definition at line 43 of file PythonPorts.hxx.

Referenced by InterpreterUnlocker(), and ~InterpreterUnlocker().


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