VirtualBox

Ignore:
Timestamp:
Feb 9, 2016 1:08:14 PM (9 years ago)
Author:
vboxsync
Message:

USB/VUSBSniffer: Separate API from format to make it possible to introduce other formats to capture the traffic in (will come next)

File:
1 edited

Legend:

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

    r58364 r59615  
    16471647        Assert(RT_SUCCESS(rc) || rc == VERR_TIMEOUT);
    16481648
    1649         vusbDevUrbIoThreadWakeup(pDev);
     1649        /* In case we are called on the I/O thread just process the request. */
     1650        if (   pDev->hUrbIoThread == RTThreadSelf()
     1651            && (fFlags & VUSB_DEV_IO_THREAD_EXEC_FLAGS_SYNC))
     1652        {
     1653            int rc2 = RTReqQueueProcess(pDev->hReqQueueSync, 0);
     1654            Assert(RT_SUCCESS(rc2) || rc2 == VERR_TIMEOUT);
     1655        }
     1656        else
     1657            vusbDevUrbIoThreadWakeup(pDev);
     1658
    16501659        if (   rc == VERR_TIMEOUT
    16511660            && (fFlags & VUSB_DEV_IO_THREAD_EXEC_FLAGS_SYNC))
     
    17821791    if (pszCaptureFilename)
    17831792    {
    1784         rc = VUSBSnifferCreate(&pDev->hSniffer, 0, pszCaptureFilename, NULL);
     1793        rc = VUSBSnifferCreate(&pDev->hSniffer, 0, pszCaptureFilename, NULL, NULL);
    17851794        AssertRCReturn(rc, rc);
    17861795    }
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