VirtualBox

儲存庫 vbox 的更動 1775


忽略:
時間撮記:
2007-3-28 下午02:35:33 (18 年 以前)
作者:
vboxsync
訊息:

shutdown change

位置:
trunk/src/VBox/Devices/Serial
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Serial/DrvChar.cpp

    r1765 r1775  
    349349
    350350    pData->fShutdown = true;
    351     RTThreadWait(pData->ReceiveThread, 1000, NULL);
    352     if (pData->ReceiveThread != NIL_RTTHREAD)
    353         LogRel(("Char%d: receive thread did not terminate\n", pDrvIns->iInstance));
     351    if (pData->ReceiveThread)
     352    {
     353        RTThreadWait(pData->ReceiveThread, 1000, NULL);
     354        if (pData->ReceiveThread != NIL_RTTHREAD)
     355            LogRel(("Char%d: receive thread did not terminate\n", pDrvIns->iInstance));
     356    }
    354357
    355358    /* Empty the send queue */
     
    360363    pData->SendSem = NIL_RTSEMEVENT;
    361364
    362     RTThreadWait(pData->SendThread, 1000, NULL);
    363     if (pData->SendThread != NIL_RTTHREAD)
    364         LogRel(("Char%d: send thread did not terminate\n", pDrvIns->iInstance));
    365 }
    366 
     365    if (pData->SendThread)
     366    {
     367        RTThreadWait(pData->SendThread, 1000, NULL);
     368        if (pData->SendThread != NIL_RTTHREAD)
     369            LogRel(("Char%d: send thread did not terminate\n", pDrvIns->iInstance));
     370    }
     371}
    367372
    368373/**
  • trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp

    r1761 r1775  
    146146        if (VBOX_FAILURE(rc))
    147147        {
    148             Log(("drvNamedPipeRead: RTFileRead returned %Vrc\n", rc));
     148            Log(("drvNamedPipeRead: RTFileRead returned %Vrc fShutdown=%d\n", rc, pData->fShutdown));
    149149            if (    !pData->fShutdown
    150150                &&  (   rc == VERR_EOF
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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