From a457b0ff60538ba415a9ccdad539d648f4f0e6a6 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 21 May 2002 01:34:08 +0000
Subject: [PATCH] Changed to INFINITE semaphore waits (for Unix compatibility).

---
 src/xpdev/clx/MainUnit.cpp       | 6 +++---
 src/xpdev/clx/TestThreadUnit.cpp | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/xpdev/clx/MainUnit.cpp b/src/xpdev/clx/MainUnit.cpp
index 2838faab88..86a3982c0f 100644
--- a/src/xpdev/clx/MainUnit.cpp
+++ b/src/xpdev/clx/MainUnit.cpp
@@ -11,15 +11,15 @@
 int main(int argc, char* argv[])
 {
 	TTestThread* Thread=new TTestThread(false /* create suspended? */);
-    Thread->ChildEvent->WaitFor(10000);	/* wait for thread to begin */
+    Thread->ChildEvent->WaitFor(INFINITE);	/* wait for thread to begin */
     Thread->ChildEvent->ResetEvent();
     for(int i=0;i<10;i++) {
         printf("<parent>");
         Thread->ParentEvent->SetEvent();
-        Thread->ChildEvent->WaitFor(10000);
+        Thread->ChildEvent->WaitFor(INFINITE);
         Thread->ChildEvent->ResetEvent();
     }
-    Thread->ChildEvent->WaitFor(10000);	/* wait for thread to end */
+    Thread->ChildEvent->WaitFor(INFINITE);	/* wait for thread to end */
     Thread->Terminate();
     getchar();
 	return 0;
diff --git a/src/xpdev/clx/TestThreadUnit.cpp b/src/xpdev/clx/TestThreadUnit.cpp
index aba7994ca0..a258704157 100644
--- a/src/xpdev/clx/TestThreadUnit.cpp
+++ b/src/xpdev/clx/TestThreadUnit.cpp
@@ -25,7 +25,7 @@ void __fastcall TTestThread::Execute()
 	ChildEvent->SetEvent();
 
 	for(int i=0;i<10;i++) {
-        ParentEvent->WaitFor(10000);
+        ParentEvent->WaitFor(INFINITE);
     	ParentEvent->ResetEvent();
 		printf(" <child>\n");
 		ChildEvent->SetEvent();
-- 
GitLab