VirtualBox

Changeset 87766 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Feb 16, 2021 2:27:43 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142820
Message:

VMM/TM,VMM/*: Refactored the TM timer APIs to use 'handles' and take a pVM parameter. Only internal callbacks have been updated with a hTimer parameter, so far. bugref:9943

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r87760 r87766  
    513513static DECLCALLBACK(void) vmmDevHeartbeatFlatlinedTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    514514{
    515     RT_NOREF(pDevIns);
     515    RT_NOREF(pDevIns, pTimer);
    516516    PVMMDEV pThis = (PVMMDEV)pvUser;
    517517    if (pThis->fHeartbeatActive)
    518518    {
    519         uint64_t cNsElapsed = TMTimerGetNano(pTimer) - pThis->nsLastHeartbeatTS;
     519        uint64_t cNsElapsed = PDMDevHlpTimerGetNano(pDevIns, pThis->hFlatlinedTimer) - pThis->nsLastHeartbeatTS;
    520520        if (   !pThis->fFlatlined
    521521            && cNsElapsed >= pThis->cNsHeartbeatInterval)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette