runtime/PLCObject.py
changeset 868 7e5da4962bea
parent 867 06495975e8a4
child 906 de452d65865c
equal deleted inserted replaced
867:06495975e8a4 868:7e5da4962bea
   111             else:
   111             else:
   112                 # If python confnode is not enabled, we reuse _PythonIterator
   112                 # If python confnode is not enabled, we reuse _PythonIterator
   113                 # as a call that block pythonthread until StopPLC 
   113                 # as a call that block pythonthread until StopPLC 
   114                 self.PythonIteratorLock = Lock()
   114                 self.PythonIteratorLock = Lock()
   115                 self.PythonIteratorLock.acquire()
   115                 self.PythonIteratorLock.acquire()
   116                 def PythonIterator(res):
   116                 def PythonIterator(res, blkid):
   117                     self.PythonIteratorLock.acquire()
   117                     self.PythonIteratorLock.acquire()
   118                     self.PythonIteratorLock.release()
   118                     self.PythonIteratorLock.release()
   119                     return None
   119                     return None
   120                 self._PythonIterator = PythonIterator
   120                 self._PythonIterator = PythonIterator
   121                 
   121