VirtualBox

Changeset 37114 in vbox for trunk/src/VBox/Devices/Serial


Ignore:
Timestamp:
May 16, 2011 4:34:49 PM (14 years ago)
Author:
vboxsync
Message:

dev/serial: destruct semevent after destructing thread using it

File:
1 edited

Legend:

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

    r37102 r37114  
    305305    {
    306306        RTSemEventSignal(pThis->SendSem);
    307         RTSemEventDestroy(pThis->SendSem);
    308         pThis->SendSem = NIL_RTSEMEVENT;
    309307    }
    310308
     
    329327        else
    330328            LogRel(("Char%d: send thread did not terminate (%Rrc)\n", pDrvIns->iInstance, rc));
     329    }
     330
     331    if (pThis->SendSem != NIL_RTSEMEVENT)
     332    {
     333        RTSemEventDestroy(pThis->SendSem);
     334        pThis->SendSem = NIL_RTSEMEVENT;
    331335    }
    332336}
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