Version: 8.3.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

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

Definition at line 36 of file PythonPorts.hxx.

References gstate_.

36  {
37  gstate_ = PyGILState_Ensure();
38  }
YACS::ENGINE::InterpreterUnlocker::~InterpreterUnlocker ( )
inline

Definition at line 39 of file PythonPorts.hxx.

References gstate_.

39  {
40  PyGILState_Release(gstate_);
41  }

Member Data Documentation

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: