summaryrefslogtreecommitdiff
path: root/sal/osl/w32/conditn.c
diff options
context:
space:
mode:
authorHennes Rohling <hro@openoffice.org>2002-06-14 09:07:53 +0000
committerHennes Rohling <hro@openoffice.org>2002-06-14 09:07:53 +0000
commit7984108d2decabc862d95bf50847e1c5b0fc88f4 (patch)
tree2852c6e4388d8c7eace555b98245477360712a70 /sal/osl/w32/conditn.c
parente39b2081f4c1f1c4905d178c49ea60141d7baf83 (diff)
#98191 Replaced MsgWaitForMultipleObjects by WaitForSingleObject
Diffstat (limited to 'sal/osl/w32/conditn.c')
-rw-r--r--sal/osl/w32/conditn.c38
1 files changed, 11 insertions, 27 deletions
diff --git a/sal/osl/w32/conditn.c b/sal/osl/w32/conditn.c
index 122038496..80f6b9163 100644
--- a/sal/osl/w32/conditn.c
+++ b/sal/osl/w32/conditn.c
@@ -2,9 +2,9 @@
*
* $RCSfile: conditn.c,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: jl $ $Date: 2001-03-16 13:04:44 $
+ * last change: $Author: hro $ $Date: 2002-06-14 10:07:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -135,32 +135,16 @@ oslConditionResult SAL_CALL osl_waitCondition(oslCondition Condition,
else
timeout = INFINITE;
- while(1)
+ switch ( WaitForSingleObject( (HANDLE)Condition, timeout ) )
{
- switch (MsgWaitForMultipleObjects(1, &((HANDLE)Condition),
- FALSE, timeout, QS_SENDMESSAGE))
- {
- case WAIT_OBJECT_0:
- return (osl_cond_result_ok);
-
- case WAIT_OBJECT_0 + 1:
- {
- MSG msg;
-
- while (PeekMessage(&msg, NULL, WM_USER - 1, WM_USER - 1, PM_REMOVE))
- {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
- }
- break;
- }
-
- case WAIT_TIMEOUT:
- return (osl_cond_result_timeout);
-
- default:
- return (osl_cond_result_error);
- }
+ case WAIT_OBJECT_0:
+ return (osl_cond_result_ok);
+
+ case WAIT_TIMEOUT:
+ return (osl_cond_result_timeout);
+
+ default:
+ return (osl_cond_result_error);
}
}