VirtualBox

Changeset 81382 in vbox


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

PDMDEVHLPR3: Added PDMDevHlpTimerSetCritSect. bugref:9218

Location:
trunk
Files:
2 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/**
  • trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp

    r81375 r81382  
    10621062{
    10631063    TMTimerUnlock(pdmR3DevHlp_TimerToPtr(pDevIns, hTimer));
     1064}
     1065
     1066
     1067/** @interface_method_impl{PDMDEVHLPR3,pfnTimerSetCritSect} */
     1068static DECLCALLBACK(int) pdmR3DevHlp_TimerSetCritSect(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer, PPDMCRITSECT pCritSect)
     1069{
     1070    return TMR3TimerSetCritSect(pdmR3DevHlp_TimerToPtr(pDevIns, hTimer), pCritSect);
    10641071}
    10651072
     
    42484255    pdmR3DevHlp_TimerStop,
    42494256    pdmR3DevHlp_TimerUnlock,
     4257    pdmR3DevHlp_TimerSetCritSect,
    42504258    pdmR3DevHlp_TimerSave,
    42514259    pdmR3DevHlp_TimerLoad,
     
    46894697    pdmR3DevHlp_TimerStop,
    46904698    pdmR3DevHlp_TimerUnlock,
     4699    pdmR3DevHlp_TimerSetCritSect,
    46914700    pdmR3DevHlp_TimerSave,
    46924701    pdmR3DevHlp_TimerLoad,
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