[openrtm-commit:01914] r706 - trunk/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2016年 4月 26日 (火) 09:09:55 JST


Author: miyamoto
Date: 2016-04-26 09:09:55 +0900 (Tue, 26 Apr 2016)
New Revision: 706

Modified:
   trunk/OpenRTM-aist-Python/OpenRTM_aist/ExtTrigExecutionContext.py
Log:
[compat,bugfix] bug fix. refs #3562

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/ExtTrigExecutionContext.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/ExtTrigExecutionContext.py	2016-04-25 03:50:19 UTC (rev 705)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/ExtTrigExecutionContext.py	2016-04-26 00:09:55 UTC (rev 706)
@@ -75,7 +75,7 @@
     return
 
 
-  def __del__(self):
+  def __del__(self, Task=OpenRTM_aist.Task):
     self._rtcout.RTC_TRACE("ExtTrigExecutionContext.__del__()")
     guard = OpenRTM_aist.ScopedLock(self._svcmutex)
     self._svc = False
@@ -393,6 +393,16 @@
 
     return RTC.RTC_OK
 
+  # virtual RTC::ReturnCode_t onStopping();
+  def onStopping(self):
+    guard = OpenRTM_aist.ScopedLock(self._svcmutex)
+    self._svc = False
+    del guard
+    
+    # stop thread
+    self.tick()
+    
+    return RTC.RTC_OK
 
   ##
   # @brief onWaitingActivated() template function



More information about the openrtm-commit mailing list