VirtualBox

Changeset 89722 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jun 15, 2021 7:45:20 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145173
Message:

VMM/DBGFR3SampleReport: Temporary windows build fixes until the R3 timer implementation was cleaned up, bugref:10025

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/DBGFR3SampleReport.cpp

    r89701 r89722  
    442442        if (ASMAtomicReadU32((volatile uint32_t *)&pThis->enmState) == DBGFSAMPLEREPORTSTATE_STOPPING)
    443443        {
     444#ifndef RT_OS_WINDOWS
    444445            rc = RTTimerStop(pThis->hTimer); AssertRC(rc); RT_NOREF(rc);
     446#endif
    445447            rc = RTTimerDestroy(pThis->hTimer); AssertRC(rc); RT_NOREF(rc);
    446448            pThis->hTimer = NULL;
     
    501503                RTMemFree(pThis->pszReport);
    502504            pThis->pszReport = Hlp.pachBuf;
     505            Hlp.pachBuf = NULL;
    503506            dbgfR3SampleReportInfoHlpDelete(&Hlp);
    504507
     
    681684    DBGFR3SampleReportRetain(pThis);
    682685
     686#ifndef RT_OS_WINDOWS
    683687    rc = RTTimerCreateEx(&pThis->hTimer, pThis->cSampleIntervalUs * 1000,
    684688                         RTTIMER_FLAGS_CPU_ANY | RTTIMER_FLAGS_HIGH_RES,
     
    686690    if (RT_SUCCESS(rc))
    687691        rc = RTTimerStart(pThis->hTimer, 0 /*u64First*/);
     692#else
     693    rc = RTTimerCreate(&pThis->hTimer, pThis->cSampleIntervalUs / 1000,
     694                       dbgfR3SampleReportTakeSample, pThis);
     695#endif
    688696
    689697    if (RT_FAILURE(rc))
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