*** empty log message ***
authorpenk
Mon, 14 Mar 2005 22:08:53 +0100
changeset 4363 d7a017ae1487
parent 4362 00fdb904e508
child 4364 76cd52d9ef16
*** empty log message ***
WinWorkstation.st
--- a/WinWorkstation.st	Fri Mar 11 12:02:33 2005 +0100
+++ b/WinWorkstation.st	Mon Mar 14 22:08:53 2005 +0100
@@ -1790,9 +1790,9 @@
 	return (TRUE);
 
     if (dwWaitResult == WAIT_TIMEOUT)
-	fprintf(stderr, "WinWorkstation [info]: lockEventF timeout\n");
+	fprintf(stderr, "WinWorkstation [info]: lockEvent timeout\n");
     else
-	fprintf(stderr, "WinWorkstation [info]: lockEventF abandoned\n");
+	fprintf(stderr, "WinWorkstation [info]: lockEvent abandoned\n");
 
     return (FALSE);
 }
@@ -1808,7 +1808,7 @@
 #endif
     if (! ReleaseMutex(hEventsMutex)) {
        /* Deal with error. */
-       fprintf(stderr, "unlock EventFreeList Error\n");
+       fprintf(stderr, "WinWorkstation [info]: unlockEvent rrror\n");
        return (FALSE);
     }
     return (TRUE);
@@ -1861,7 +1861,10 @@
 	fprintf(stderr, "WinWorkstation [info]: wait for event memory (%d)\n", repeatCount);
 	WaitForSingleObject( hNeverTriggered, 100L );
     }
-    lockEvents();
+    if (! lockEvents()) {
+	fprintf(stderr, "WinWorkstation [error]: event throw away\n");
+	return;
+    }
 
     ev = eventFreeList;
 
@@ -1919,8 +1922,9 @@
     if (! eventQueueHead)
 	return (0);
 
-    if (! lockEvents())
+    if (! lockEvents()) {
 	return (0);
+    }
 
     TH_DPRINTF(("TDEQ\n"));
     ev = eventQueueHead;
@@ -16425,7 +16429,7 @@
 !WinWorkstation class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/WinWorkstation.st,v 1.297 2005-03-09 19:28:46 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/WinWorkstation.st,v 1.298 2005-03-14 21:08:53 penk Exp $'
 ! !
 
 WinWorkstation initialize!