winpr-comm: don't loop yet on IOCTL_SERIAL_WAIT_ON_MASK

This commit is contained in:
Emmanuel Ledoux 2014-05-23 15:16:07 +02:00 committed by Emmanuel Ledoux
parent 1cb1fd6764
commit a36467c353
1 changed files with 3 additions and 7 deletions

View File

@ -1305,8 +1305,9 @@ static BOOL _wait_on_mask(WINPR_COMM *pComm, ULONG *pOutputMask)
{
assert(*pOutputMask == 0);
while (TRUE)
// TMP: TODO:
// TMP: TODO: wait also on a PendingEvents modification, and a new identical IRP
/* while (TRUE) */
{
SERIAL_STATUS serialStatus;
@ -1335,11 +1336,6 @@ static BOOL _wait_on_mask(WINPR_COMM *pComm, ULONG *pOutputMask)
/* at least an event occurred */
return TRUE;
}
/* // TMP: */
DEBUG_WARN("waiting on events:0X%lX", pComm->waitMask);
sleep(1); // TMP: TODO: wait also on a PendingEvents modification, and a new identical IRP
}
DEBUG_WARN("_wait_on_mask pending on events:0X%lX", pComm->waitMask);