equal
deleted
inserted
replaced
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() |