ion@svn.reactos.com wrote:
Retry waiting if STATUS_ALERTED is returned
Hi,
I suspect many will read MSDN and tell me that this patch is wrong since MSDN says "If Alertable is TRUE, the wait will return early". Before you do so, please note that MSDN is WRONG and/or refers to the NtWaitForXXX functionality. Win32 will actually loop and never early-return for an Alertable WaitForXXX call.
Best regards, Alex Ionescu
Alex Ionescu wrote:
...never early-return for an Alertable WaitForXXX call.
If the status is STATUS_ALERTED, which is what I guess MSDN is trying to say when they mean APCs will be delivered and the wait will end.
Best regards, Alex Ionescu