From: Gurusamy Sarathy Date: Fri, 13 Dec 2002 17:31:59 +0000 (-0800) Subject: win32_msgwait() problem X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=089197fafbcea8edb9a8f7b55a201115f3f2010a;p=p5sagit%2Fp5-mst-13.2.git win32_msgwait() problem Message-Id: <200212140132.gBE1Vxp02090@smtp3.ActiveState.com> p4raw-id: //depot/perl@18408 --- diff --git a/win32/win32.c b/win32/win32.c index c03c3be..070ee9c 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1912,6 +1912,8 @@ win32_async_check(pTHX) return ours; } +/* This function will not return until the timeout has elapsed, or until + * one of the handles is ready. */ DllExport DWORD win32_msgwait(pTHX_ DWORD count, LPHANDLE handles, DWORD timeout, LPDWORD resultp) { @@ -1936,10 +1938,7 @@ win32_msgwait(pTHX_ DWORD count, LPHANDLE handles, DWORD timeout, LPDWORD result } if (result == WAIT_OBJECT_0 + count) { /* Message has arrived - check it */ - if (win32_async_check(aTHX)) { - /* was one of ours */ - break; - } + (void)win32_async_check(aTHX); } else { /* Not timeout or message - one of handles is ready */