VirtualBox

Changeset 89674 in vbox for trunk


Ignore:
Timestamp:
Jun 14, 2021 9:43:21 AM (3 years ago)
Author:
vboxsync
Message:

VUSBDevice: Make sure the reset timer get a unique name as this is generic library code that all USB implementations uses. bugref:10021

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/VUSBDevice.cpp

    r87773 r89674  
    18101810
    18111811    /*
    1812      * Create the reset timer.
    1813      */
     1812     * Create the reset timer.  Make sure the name is unique as we're generic code.
     1813     */
     1814    static uint32_t volatile s_iSeq;
     1815    char                     szDesc[32];
     1816    RTStrPrintf(szDesc, sizeof(szDesc), "VUSB Reset #%u", ASMAtomicIncU32(&s_iSeq));
    18141817    rc = PDMUsbHlpTimerCreate(pDev->pUsbIns, TMCLOCK_VIRTUAL, vusbDevResetDoneTimer, pDev, 0 /*fFlags*/,
    1815                               "USB Reset", &pDev->hResetTimer);
     1818                              szDesc, &pDev->hResetTimer);
    18161819    AssertRCReturn(rc, rc);
    18171820
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