X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fstandalone%2Fsimple%2FPyInterp_Utils.h;h=2075e681d3efadf42450b4a89a31c374a30fe7ad;hb=76595daea917b39a1c29b3cf79d0ae95e27ab032;hp=039c18574f083f5b2a82c24afbd3d1bb60881a1d;hpb=196a5e085618b035f0622155c39a2ae741b52af3;p=modules%2Fparavis.git diff --git a/test/standalone/simple/PyInterp_Utils.h b/test/standalone/simple/PyInterp_Utils.h index 039c1857..2075e681 100644 --- a/test/standalone/simple/PyInterp_Utils.h +++ b/test/standalone/simple/PyInterp_Utils.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -60,9 +60,8 @@ public: */ ~PyLockWrapper() { - PyThreadState* _currState = PyGILState_GetThisThreadState(); #ifdef _DEBUG_ - if (_currState != _state) + if (PyGILState_GetThisThreadState() != _state) { std::cout << "!!!!!!!!! PyLockWrapper inconsistency - now entering infinite loop for debugging\n"; while(1);