[openrtm-commit:00305] r2213 - trunk/OpenRTM-aist/src/lib/coil/common

openrtm @ openrtm.org openrtm @ openrtm.org
2011年 8月 3日 (水) 17:59:33 JST


Author: n-ando
Date: 2011-08-03 17:59:33 +0900 (Wed, 03 Aug 2011)
New Revision: 2213

Modified:
   trunk/OpenRTM-aist/src/lib/coil/common/Timer.cpp
Log:
Bug: m_taskMutex was not locked in invoke() function. fixed.


Modified: trunk/OpenRTM-aist/src/lib/coil/common/Timer.cpp
===================================================================
--- trunk/OpenRTM-aist/src/lib/coil/common/Timer.cpp	2011-07-27 14:34:27 UTC (rev 2212)
+++ trunk/OpenRTM-aist/src/lib/coil/common/Timer.cpp	2011-08-03 08:59:33 UTC (rev 2213)
@@ -119,6 +119,7 @@
    */
   void Timer::invoke()
   {
+    Guard guard(m_taskMutex);
     for (size_t i(0), len(m_tasks.size()); i < len; ++i)
       {
 	m_tasks[i].remains = m_tasks[i].remains - m_interval;



openrtm-commit メーリングリストの案内