Changeset 12351 in vbox
- Timestamp:
- Sep 10, 2008 1:00:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r12349 r12351 433 433 434 434 #ifdef RT_OS_WINDOWS 435 /* Make sure that the halt event sempahore is resetted. */ 436 DWORD dwRet = WaitForSingleObject(pThis->hHaltEventSem, 0); 437 435 438 HANDLE haWait[2]; 436 439 haWait[0] = pThis->hEventSend; … … 464 467 if (!WriteFile(pThis->hDeviceFile, &pThis->aSendQueue[pThis->iSendQueueTail], cbProcessed, &cbBytesWritten, &pThis->overlappedSend)) 465 468 { 466 DWORDdwRet = GetLastError();469 dwRet = GetLastError(); 467 470 if (dwRet == ERROR_IO_PENDING) 468 471 { … … 472 475 dwRet = WaitForMultipleObjects(2, haWait, FALSE, INFINITE); 473 476 if (dwRet != WAIT_OBJECT_0) 477 { 478 AssertMsg(pThread->enmState != PDMTHREADSTATE_RUNNING, ("The halt event sempahore is set but the thread is still in running state\n")); 474 479 break; 480 } 475 481 } 476 482 else … … 546 552 547 553 #ifdef RT_OS_WINDOWS 554 /* Make sure that the halt event sempahore is resetted. */ 555 DWORD dwRet = WaitForSingleObject(pThis->hHaltEventSem, 0) 556 548 557 HANDLE ahWait[2]; 549 ahWait[0] = pThis->hEventRecv;550 ahWait[1] = pThis->hHaltEventSem;558 haWait[0] = pThis->hEventRecv; 559 haWait[1] = pThis->hHaltEventSem; 551 560 #endif 552 561 … … 654 663 if (!WaitCommEvent(pThis->hDeviceFile, &dwEventMask, &pThis->overlappedRecv)) 655 664 { 656 DWORDdwRet = GetLastError();665 dwRet = GetLastError(); 657 666 if (dwRet == ERROR_IO_PENDING) 658 667 { … … 661 670 { 662 671 /* notification to terminate */ 672 AssertMsg(pThread->enmState != PDMTHREADSTATE_RUNNING, ("The halt event sempahore is set but the thread is still in running state\n")); 663 673 break; 664 674 }
Note:
See TracChangeset
for help on using the changeset viewer.