VirtualBox

Changeset 12384 in vbox


Ignore:
Timestamp:
Sep 10, 2008 11:56:43 PM (16 years ago)
Author:
vboxsync
Message:

DrvHostSerial: review.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp

    r12381 r12384  
    7575/** Size of the send fifo queue (in bytes) */
    7676#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... */
    7780# define CHAR_MAX_SEND_QUEUE             0x400
    7881# define CHAR_MAX_SEND_QUEUE_MASK        0x3ff
     
    113116    RTFILE                      DeviceFile;
    114117# 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. */
    116120    RTFILE                      DeviceFileR;
    117121# endif
     
    473477
    474478#ifdef RT_OS_WINDOWS
    475     /* Make sure that the halt event sempahore is resetted. */
     479    /* Make sure that the halt event semaphore is reset. */
    476480    DWORD dwRet = WaitForSingleObject(pThis->hHaltEventSem, 0);
    477481
     
    575579            }
    576580
    577 #endif
     581#endif /* RT_OS_WINDOWS */
    578582            if (RT_FAILURE(rc))
    579583            {
     
    690694
    691695#ifdef RT_OS_WINDOWS
    692     /* Make sure that the halt event sempahore is resetted. */
     696    /* Make sure that the halt event semaphore is reset. */
    693697    DWORD dwRet = WaitForSingleObject(pThis->hHaltEventSem, 0);
    694698
     
    10071011}
    10081012
    1009 
    10101013# ifdef RT_OS_LINUX
    10111014/** Signal handler for SIGUSR2.
     
    10161019    return;
    10171020}
    1018 # endif
     1021# endif /* RT_OS_LINUX */
    10191022
    10201023/**
     
    14251428    if (pThis->DeviceFileR != NIL_RTFILE)
    14261429    {
    1427         if (pThis->DeviceFile != pThis->DeviceFileR)
     1430        if (pThis->DeviceFileR != pThis->DeviceFile)
    14281431        {
    14291432            int rc = RTFileClose(pThis->DeviceFileR);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette