[openrtm-commit:00292] r434 - branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 8月 2日 (火) 21:15:11 JST
Author: kurihara
Date: 2011-08-02 21:15:10 +0900 (Tue, 02 Aug 2011)
New Revision: 434
Modified:
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/Timer.py
Log:
Guard has been added in invoke().
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/Timer.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/Timer.py 2011-08-02 12:14:09 UTC (rev 433)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/Timer.py 2011-08-02 12:15:10 UTC (rev 434)
@@ -195,6 +195,7 @@
#
# @endif
def invoke(self):
+ guard = OpenRTM_aist.ScopedLock(self._taskMutex)
for i in range(len(self._tasks)):
self._tasks[i].remains = self._tasks[i].remains - self._interval
if self._tasks[i].remains.sign() <= 0.0:
openrtm-commit メーリングリストの案内