equal
deleted
inserted
replaced
168 CloseHandle(PLC_timer); |
168 CloseHandle(PLC_timer); |
169 CloseHandle(PLC_thread); |
169 CloseHandle(PLC_thread); |
170 } |
170 } |
171 |
171 |
172 /* from plc_debugger.c */ |
172 /* from plc_debugger.c */ |
|
173 int WaitDebugData(unsigned long *tick) |
173 unsigned long WaitDebugData() |
174 unsigned long WaitDebugData() |
174 { |
175 { |
175 if(WaitForSingleObject(debug_wait_sem, INFINITE) != WAIT_OBJECT_0) return -1; |
176 *tick = __debug_tick; |
176 return __debug_tick; |
177 /* Wait signal from PLC thread */ |
|
178 return WaitForSingleObject(debug_wait_sem, INFINITE) != WAIT_OBJECT_0; |
177 } |
179 } |
178 |
180 |
179 /* Called by PLC thread when debug_publish finished |
181 /* Called by PLC thread when debug_publish finished |
180 * This is supposed to unlock debugger thread in WaitDebugData*/ |
182 * This is supposed to unlock debugger thread in WaitDebugData*/ |
181 void InitiateDebugTransfer() |
183 void InitiateDebugTransfer() |