VirtualBox

Changeset 92155 in vbox for trunk


Ignore:
Timestamp:
Oct 29, 2021 5:27:53 PM (3 years ago)
Author:
vboxsync
Message:

VMM/PDMUsb: Add thread helpers to the helper callback table, bugref:10074

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmusb.h

    r91898 r92155  
    435435
    436436/** Current USBREG version number. */
    437 #define PDM_USBREG_VERSION                      PDM_VERSION_MAKE(0xeeff, 1, 0)
     437#define PDM_USBREG_VERSION                      PDM_VERSION_MAKE(0xeeff, 2, 0)
    438438
    439439/** PDM USB Device Flags.
     
    864864                                               PFNPDMTHREADWAKEUPUSB pfnWakeup, size_t cbStack, RTTHREADTYPE enmType, const char *pszName));
    865865
     866    /** @name Exported PDM Thread Functions
     867     * @{ */
     868    DECLR3CALLBACKMEMBER(int, pfnThreadDestroy,(PPDMTHREAD pThread, int *pRcThread));
     869    DECLR3CALLBACKMEMBER(int, pfnThreadIAmSuspending,(PPDMTHREAD pThread));
     870    DECLR3CALLBACKMEMBER(int, pfnThreadIAmRunning,(PPDMTHREAD pThread));
     871    DECLR3CALLBACKMEMBER(int, pfnThreadSleep,(PPDMTHREAD pThread, RTMSINTERVAL cMillies));
     872    DECLR3CALLBACKMEMBER(int, pfnThreadSuspend,(PPDMTHREAD pThread));
     873    DECLR3CALLBACKMEMBER(int, pfnThreadResume,(PPDMTHREAD pThread));
     874    /** @} */
     875
    866876    /**
    867877     * Set up asynchronous handling of a suspend, reset or power off notification.
  • trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp

    r91900 r92155  
    23662366    pdmR3UsbHlp_VMState,
    23672367    pdmR3UsbHlp_ThreadCreate,
     2368    PDMR3ThreadDestroy,
     2369    PDMR3ThreadIAmSuspending,
     2370    PDMR3ThreadIAmRunning,
     2371    PDMR3ThreadSleep,
     2372    PDMR3ThreadSuspend,
     2373    PDMR3ThreadResume,
    23682374    pdmR3UsbHlp_SetAsyncNotification,
    23692375    pdmR3UsbHlp_AsyncNotificationCompleted,
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