VirtualBox

Changeset 81382 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 19, 2019 11:57:59 PM (5 years ago)
Author:
vboxsync
Message:

PDMDEVHLPR3: Added PDMDevHlpTimerSetCritSect. bugref:9218

File:
1 edited

Legend:

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

    r81381 r81382  
    22722272
    22732273/** Current PDMDEVHLPR3 version number. */
    2274 #define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE_PP(0xffe7, 25, 0)
     2274#define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE_PP(0xffe7, 26, 0)
    22752275
    22762276/**
     
    29852985    DECLR3CALLBACKMEMBER(int,      pfnTimerStop,(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer));
    29862986    DECLR3CALLBACKMEMBER(void,     pfnTimerUnlock,(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer));
     2987    DECLR3CALLBACKMEMBER(int,      pfnTimerSetCritSect,(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer, PPDMCRITSECT pCritSect));
    29872988    DECLR3CALLBACKMEMBER(int,      pfnTimerSave,(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer, PSSMHANDLE pSSM));
    29882989    DECLR3CALLBACKMEMBER(int,      pfnTimerLoad,(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer, PSSMHANDLE pSSM));
     
    60046005 * @copydoc PDMDEVHLPR3::pfnTMTimerCreate
    60056006 */
    6006 DECLINLINE(int) PDMDevHlpTMTimerCreate(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, void *pvUser, uint32_t fFlags,
    6007                                        const char *pszDesc, PPTMTIMERR3 ppTimer)
     6007DECLINLINE(int) PDMDevHlpTMTimerCreate(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, void *pvUser,
     6008                                       uint32_t fFlags, const char *pszDesc, PPTMTIMERR3 ppTimer)
    60086009{
    60096010    return pDevIns->pHlpR3->pfnTMTimerCreate(pDevIns, enmClock, pfnCallback, pvUser, fFlags, pszDesc, ppTimer);
     
    61666167
    61676168#ifdef IN_RING3
     6169
     6170/**
     6171 * @copydoc PDMDEVHLPR3::pfnTimerSetCritSect
     6172 */
     6173DECLINLINE(int) PDMDevHlpTimerSetCritSect(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer, PPDMCRITSECT pCritSect)
     6174{
     6175    return pDevIns->pHlpR3->pfnTimerSetCritSect(pDevIns, hTimer, pCritSect);
     6176}
    61686177
    61696178/**
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