runtime/PLCObject.py
changeset 717 1c23952dbde1
parent 699 6ff64cadb1ff
child 734 5c42cafaee15
equal deleted inserted replaced
716:180e4a7d945c 717:1c23952dbde1
   107                 self._PythonIterator.restype = ctypes.c_char_p
   107                 self._PythonIterator.restype = ctypes.c_char_p
   108                 self._PythonIterator.argtypes = [ctypes.c_char_p]
   108                 self._PythonIterator.argtypes = [ctypes.c_char_p]
   109                 
   109                 
   110                 self._stopPLC = self._stopPLC_real
   110                 self._stopPLC = self._stopPLC_real
   111             else:
   111             else:
   112                 # If python plugin 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):
   117                     self.PythonIteratorLock.acquire()
   117                     self.PythonIteratorLock.acquire()