Salome HOME
Manage initnode and finalizenode in the foreachloop progress bar.
[modules/yacs.git] / src / engine / RefCounter.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 93ce8df..ebb2eac
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2015  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
@@ -42,7 +42,7 @@ void RefCounter::incrRef() const
   RefCounter::_totalCnt++;
 #endif
   _cnt++;
-  _globalMutexForTS.unlock();
+  _globalMutexForTS.unLock();
 }
 
 bool RefCounter::decrRef()
@@ -52,7 +52,7 @@ bool RefCounter::decrRef()
   RefCounter::_totalCnt--;
 #endif
   bool ret=(--_cnt==0);
-  _globalMutexForTS.unlock();
+  _globalMutexForTS.unLock();
   if(ret)
     delete this;
   return ret;
@@ -65,6 +65,10 @@ RefCounter::RefCounter():_cnt(1)
 #endif
 }
 
+RefCounter::RefCounter(const RefCounter& other):_cnt(1)
+{
+}
+
 RefCounter::~RefCounter()
 {
 #ifdef REFCNT