-// Copyright (C) 2011-2016 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
*/
~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);