VirtualBox

Changeset 6214 in vbox


Ignore:
Timestamp:
Dec 28, 2007 5:24:02 PM (17 years ago)
Author:
vboxsync
Message:

another race

File:
1 edited

Legend:

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

    r6213 r6214  
    350350                RTSemEventWait(pData->ListenSem, 250);
    351351            }
    352             else
    353             if (hrc != ERROR_SUCCESS)
     352            else if (hrc != ERROR_SUCCESS)
    354353            {
    355354                rc = RTErrConvertFromWin32(hrc);
     
    464463        pData->NamedPipe = hPipe;
    465464
     465        rc = RTSemEventCreate(&pData->ListenSem);
     466        AssertRC(rc);
     467
    466468        rc = RTThreadCreate(&pData->ListenThread, drvNamedPipeListenLoop, (void *)pData, 0, RTTHREADTYPE_IO, RTTHREADFLAGS_WAITABLE, "NamedPipe");
    467469        if VBOX_FAILURE(rc)
    468470            return PDMDrvHlpVMSetError(pDrvIns, rc,  RT_SRC_POS, N_("NamedPipe#%d failed to create listening thread"), pDrvIns->iInstance);
    469471
    470         rc = RTSemEventCreate(&pData->ListenSem);
    471         AssertRC(rc);
    472472    }
    473473    else
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