Version: 8.3.0
YACS::ENGINE::AutoGIL Class Reference

#include <AutoGIL.hxx>

Collaboration diagram for YACS::ENGINE::AutoGIL:

Public Member Functions

 AutoGIL ()
 
 ~AutoGIL ()
 

Private Attributes

PyGILState_STATE _gstate
 

Detailed Description

Definition at line 30 of file AutoGIL.hxx.

Constructor & Destructor Documentation

YACS::ENGINE::AutoGIL::AutoGIL ( )
inline

Definition at line 33 of file AutoGIL.hxx.

33 :_gstate(PyGILState_Ensure()) { }
YACS::ENGINE::AutoGIL::~AutoGIL ( )
inline

Definition at line 34 of file AutoGIL.hxx.

References _gstate.

34 { PyGILState_Release(_gstate); }

Member Data Documentation

PyGILState_STATE YACS::ENGINE::AutoGIL::_gstate
private

Definition at line 36 of file AutoGIL.hxx.

Referenced by ~AutoGIL().


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