Version: 6.3.1
Public Member Functions | Private Attributes

PyLockWrapper Class Reference

Python GIL wrapper.

#include <PyInterp_Interp.h>

Public Member Functions

 PyLockWrapper (PyThreadState *theThreadState)
 Constructor. Automatically acquires GIL.
 ~PyLockWrapper ()
 Destructor. Automatically releases GIL.

Private Attributes

PyThreadState * myThreadState
PyThreadState * mySaveThreadState
PyGILState_STATE _savestate

Constructor & Destructor Documentation

PyLockWrapper::PyLockWrapper ( PyThreadState *  theThreadState)
Parameters:
theThreadStatepython thread state

References PyInterp_Interp._interp, _savestate, and myThreadState.

PyLockWrapper::~PyLockWrapper ( )

Field Documentation

PyThreadState* PyLockWrapper.myThreadState [private]
PyThreadState* PyLockWrapper.mySaveThreadState [private]
PyGILState_STATE PyLockWrapper._savestate [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS