Changeset 12384 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 10, 2008 11:56:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r12381 r12384 75 75 /** Size of the send fifo queue (in bytes) */ 76 76 #ifdef RT_OS_DARWIN 77 /** @todo This is really desperate, but it seriously looks like 78 * the data is arriving way too fast for us to push over. 9600 79 * baud and zoc reports sending at 12000+ chars/sec... */ 77 80 # define CHAR_MAX_SEND_QUEUE 0x400 78 81 # define CHAR_MAX_SEND_QUEUE_MASK 0x3ff … … 113 116 RTFILE DeviceFile; 114 117 # ifdef RT_OS_DARWIN 115 /** The device handle used for reading. */ 118 /** The device handle used for reading. 119 * Used to prevent the read selecto from blocking the writes. */ 116 120 RTFILE DeviceFileR; 117 121 # endif … … 473 477 474 478 #ifdef RT_OS_WINDOWS 475 /* Make sure that the halt event sem pahore is resetted. */479 /* Make sure that the halt event semaphore is reset. */ 476 480 DWORD dwRet = WaitForSingleObject(pThis->hHaltEventSem, 0); 477 481 … … 575 579 } 576 580 577 #endif 581 #endif /* RT_OS_WINDOWS */ 578 582 if (RT_FAILURE(rc)) 579 583 { … … 690 694 691 695 #ifdef RT_OS_WINDOWS 692 /* Make sure that the halt event sem pahore is resetted. */696 /* Make sure that the halt event semaphore is reset. */ 693 697 DWORD dwRet = WaitForSingleObject(pThis->hHaltEventSem, 0); 694 698 … … 1007 1011 } 1008 1012 1009 1010 1013 # ifdef RT_OS_LINUX 1011 1014 /** Signal handler for SIGUSR2. … … 1016 1019 return; 1017 1020 } 1018 # endif 1021 # endif /* RT_OS_LINUX */ 1019 1022 1020 1023 /** … … 1425 1428 if (pThis->DeviceFileR != NIL_RTFILE) 1426 1429 { 1427 if (pThis->DeviceFile != pThis->DeviceFileR)1430 if (pThis->DeviceFileR != pThis->DeviceFile) 1428 1431 { 1429 1432 int rc = RTFileClose(pThis->DeviceFileR);
Note:
See TracChangeset
for help on using the changeset viewer.