]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Restore Windows python debug workaround.
authorabd <abd@opencascade.com>
Fri, 29 Jun 2007 12:46:09 +0000 (12:46 +0000)
committerabd <abd@opencascade.com>
Fri, 29 Jun 2007 12:46:09 +0000 (12:46 +0000)
Now Windows Version is supporting several study in one session.

src/Container/Container_i.cxx

index 905a648b7a053c6e01a84f02ac1e6f4d332ccea5..412b79b507c474226fa66a447f57d9aa2f37eb79 100644 (file)
@@ -185,15 +185,19 @@ Engines_Container_i::Engines_Container_i (CORBA::ORB_ptr orb,
       if (!_isSupervContainer)
        {
 #ifdef WNT
-         //Py_ACQUIRE_NEW_THREAD;
-         PyEval_AcquireLock();
-         /* It should not be possible for more than one thread state
-            to be used for a thread.*/
-         PyThreadState *myTstate = PyGILState_GetThisThreadState();
-         // if no thread state defined
-         if ( !myTstate ) 
-           myTstate = PyThreadState_New(KERNEL_PYTHON::_interp);
-         PyThreadState *myoldTstate = PyThreadState_Swap(myTstate);
+//       //Py_ACQUIRE_NEW_THREAD;
+//               PyEval_AcquireLock();
+//               /* It should not be possible for more than one thread state
+//                  to be used for a thread.*/
+//               PyThreadState *myTstate = PyGILState_GetThisThreadState();
+//               // if no thread state defined
+//               if ( !myTstate ) 
+//                 myTstate = PyThreadState_New(KERNEL_PYTHON::_interp);
+//               PyThreadState *myoldTstate = PyThreadState_Swap(myTstate);
+
+    PyEval_AcquireLock();
+    PyThreadState *myTstate = PyThreadState_New(KERNEL_PYTHON::_interp);
+    PyThreadState *myoldTstate = PyThreadState_Swap(myTstate);
 #else
          Py_ACQUIRE_NEW_THREAD;
 #endif