fixed : MAX_SEM_COUNT to 1 instead of 10
authorgreg
Mon, 15 Dec 2008 08:41:16 +0100
changeset 276 0d7426f26c6f
parent 275 ff7c8eb3f362
child 277 73890551f021
fixed : MAX_SEM_COUNT to 1 instead of 10
remove ReleaseSemaphore on debug_sem in InitiateDebugTransfer function
targets/Win32/plc_Win32_main.c
--- a/targets/Win32/plc_Win32_main.c	Fri Dec 12 17:54:17 2008 +0100
+++ b/targets/Win32/plc_Win32_main.c	Mon Dec 15 08:41:16 2008 +0100
@@ -65,7 +65,7 @@
 HANDLE PLC_thread;
 HANDLE debug_sem;
 HANDLE wait_sem; 
-#define MAX_SEM_COUNT 10
+#define MAX_SEM_COUNT 1
 
 int startPLC(int argc,char **argv)
 {
@@ -147,12 +147,10 @@
 	return __debug_tick;
 }
  
-/* Called by PLC thread when debug_publish finished
+/* Called by PLC thread when debug_pu//blish finished
  * This is supposed to unlock debugger thread in WaitDebugData*/
 void InitiateDebugTransfer()
 {
-	/* Leave debugger section */
-	ReleaseSemaphore(debug_sem, 1, NULL);
     /* remember tick */
     __debug_tick = __tick;
     /* signal debugger thread it can read data */