Salome HOME
Merge branch 'master' of ssh://git.salome-platform.org/modules/gui
[modules/gui.git] / src / PyInterp / PyInterp_Utils.h
index c9866bab14166088810891a22172ccc0d46701ed..090ca1fc28a04a5d2c7318e4a63f86f5df8a2cfd 100644 (file)
  */
 class PYINTERP_EXPORT PyLockWrapper
 {
-  PyGILState_STATE _gil_state;
+
 public:
   PyLockWrapper();
   ~PyLockWrapper();
 
 private:
+  PyGILState_STATE _gil_state;
+  PyThreadState * _state;
+
   // "Rule of 3" - Forbid usage of copy operator and copy-constructor
   PyLockWrapper(const PyLockWrapper & another);
   const PyLockWrapper & operator=(const PyLockWrapper & another);