[openrtm-commit:03203] r952 - trunk/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2018年 2月 28日 (水) 14:31:59 JST


Author: miyamoto
Date: 2018-02-28 14:31:59 +0900 (Wed, 28 Feb 2018)
New Revision: 952

Modified:
   trunk/OpenRTM-aist-Python/OpenRTM_aist/RingBuffer.py
Log:
[bugfix, ->trunk] bug fixed. refs #4470

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/RingBuffer.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/RingBuffer.py	2018-02-28 04:24:05 UTC (rev 951)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/RingBuffer.py	2018-02-28 05:31:59 UTC (rev 952)
@@ -275,7 +275,7 @@
     self._wpos = (self._wpos + n + self._length) % self._length
     self._fillcount += n
 
-    if unlock_enable:
+    if unlock_enable and n > 0:
       if empty and n > 0:
         self._empty_cond.notify()
       self._empty_cond.release()



More information about the openrtm-commit mailing list