diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2002-12-13 09:31:59 -0800 |
---|---|---|
committer | hv <hv@crypt.org> | 2003-01-03 10:56:54 +0000 |
commit | 089197fafbcea8edb9a8f7b55a201115f3f2010a (patch) | |
tree | 76fb7d021e9e89ee4c6268a09de1fecbc3016121 /win32 | |
parent | 890ed176d1ab1cf305ce9634210857cfed305fff (diff) | |
download | perl-089197fafbcea8edb9a8f7b55a201115f3f2010a.tar.gz |
win32_msgwait() problem
Message-Id: <200212140132.gBE1Vxp02090@smtp3.ActiveState.com>
p4raw-id: //depot/perl@18408
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/win32/win32.c b/win32/win32.c index c03c3be789..070ee9c132 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 */ |