Salome HOME
updated copyright message
[modules/med.git] / src / MEDCalc / cmp / MEDPyLockWrapper.hxx
index 5fa391e846244fdf6f3c8a9530aff6a089f6d447..955130c465a98f78fd13e1e417a3186eb809db3a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -54,9 +54,8 @@ public:
    */
   ~MEDPyLockWrapper()
   {
-    PyThreadState* _currState = PyGILState_GetThisThreadState();
 #ifdef _DEBUG_
-    if (_currState != _state)
+    if (PyGILState_GetThisThreadState() != _state)
     {
       std::cout << "!!!!!!!!! MEDPyLockWrapper inconsistency - now entering infinite loop for debugging\n";
       while(1);