Salome HOME
[PY3] Fix appels à print dans les schéma xml et scripts python
[modules/yacs.git] / src / bases / Mutex.hxx
index a098793fc505a2c8e21d8900927e2d43fd7fea63..a7680e18501dda5004d93a8d37ce429e6076f4ca 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2006-2013  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2016  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -49,12 +49,6 @@ namespace YACS
   {
     typedef MutexPT Mutex;
     typedef ConditionPT Condition;
-    struct Lock
-    {
-      YACS::BASES::Mutex * _mutex;
-      Lock(YACS::BASES::Mutex * mutex) : _mutex(mutex) {_mutex->lock();};
-      ~Lock() {_mutex->unlock();};
-    };
   }
 }
 #else