VirtualBox

Changeset 45626 in vbox for trunk/src


Ignore:
Timestamp:
Apr 19, 2013 2:44:19 AM (12 years ago)
Author:
vboxsync
Message:

USB/Darwin: checks whether event's sources presents in the run loop of the current thread and adds them if they missed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/darwin/USBProxyDevice-darwin.cpp

    r44528 r45626  
    570570    }
    571571
     572    Assert(pDevOsX->pInFlightHead == pUrbOsX);
    572573    /*
    573574     * Remove from the active list.
     
    578579        pUrbOsX->pPrev->pNext = pUrbOsX->pNext;
    579580    else
    580     {
    581         Assert(pDevOsX->pInFlightHead == pUrbOsX);
    582581        pDevOsX->pInFlightHead = pUrbOsX->pNext;
    583     }
    584582
    585583    /*
     
    15301528            return false;
    15311529        }
     1530
     1531        if (!CFRunLoopContainsSource(CFRunLoopGetCurrent(), pIf->RunLoopSrcRef, g_pRunLoopMode))
     1532            CFRunLoopAddSource(CFRunLoopGetCurrent(), pIf->RunLoopSrcRef, g_pRunLoopMode);
     1533
    15321534    }
    15331535    /* else: pIf == NULL -> default control pipe.*/
     1536
     1537    if (!CFRunLoopContainsSource(CFRunLoopGetCurrent(), pDevOsX->RunLoopSrcRef, g_pRunLoopMode))
     1538        CFRunLoopAddSource(CFRunLoopGetCurrent(), pDevOsX->RunLoopSrcRef, g_pRunLoopMode);
    15341539
    15351540    /*
     
    17491754
    17501755    if (pUrb)
    1751         LogFlow(("%s: usbProxyDarwinUrbReap: pProxyDev=%s returns %p\n", pUrb->pszDesc, pProxyDev->pUsbIns->pszName, pUrb));
     1756        LogFlowFunc(("LEAVE: %s: pProxyDev=%s returns %p\n", pUrb->pszDesc, pProxyDev->pUsbIns->pszName, pUrb));
     1757    else
     1758        LogFlowFunc(("LEAVE: NULL pProxyDev=%s returns NULL", pProxyDev->pUsbIns->pszName));
    17521759    return pUrb;
    17531760}
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