equal
deleted
inserted
replaced
129 pthread_mutex_destroy(&python_wait_mutex); |
129 pthread_mutex_destroy(&python_wait_mutex); |
130 return 0; |
130 return 0; |
131 } |
131 } |
132 |
132 |
133 extern unsigned long __tick; |
133 extern unsigned long __tick; |
134 /* from plc_debugger.c */ |
134 |
135 unsigned long WaitDebugData() |
135 int WaitDebugData(unsigned long *tick) |
136 { |
136 { |
|
137 *tick = __debug_tick; |
137 /* Wait signal from PLC thread */ |
138 /* Wait signal from PLC thread */ |
138 if(pthread_mutex_lock(&debug_wait_mutex)) return -1; |
139 return pthread_mutex_lock(&debug_wait_mutex); |
139 return __debug_tick; |
|
140 } |
140 } |
141 |
141 |
142 /* Called by PLC thread when debug_publish finished |
142 /* Called by PLC thread when debug_publish finished |
143 * This is supposed to unlock debugger thread in WaitDebugData*/ |
143 * This is supposed to unlock debugger thread in WaitDebugData*/ |
144 void InitiateDebugTransfer() |
144 void InitiateDebugTransfer() |