VirtualBox

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


Ignore:
Timestamp:
May 27, 2009 3:18:05 PM (16 years ago)
Author:
vboxsync
Message:

TM.cpp: Forgot to take the timer crit sect when working virtual sync timers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/TM.cpp

    r20089 r20091  
    19791979    while (pNext && pNext->u64Expire <= u64Max)
    19801980    {
    1981         PTMTIMER pTimer = pNext;
     1981        PTMTIMER        pTimer    = pNext;
    19821982        pNext = TMTIMER_GET_NEXT(pTimer);
     1983        PPDMCRITSECT    pCritSect = pTimer->pCritSect;
     1984        if (pCritSect)
     1985            PDMCritSectEnter(pCritSect, VERR_INTERNAL_ERROR);
    19831986        Log2(("tmR3TimerQueueRun: %p:{.enmState=%s, .enmClock=%d, .enmType=%d, u64Expire=%llx (now=%llx) .pszDesc=%s}\n",
    19841987              pTimer, tmTimerState(pTimer->enmState), pTimer->enmClock, pTimer->enmType, pTimer->u64Expire, u64Now, pTimer->pszDesc));
     
    20262029            Log2(("tmR3TimerQueueRun: new state %s\n", tmTimerState(pTimer->enmState)));
    20272030        }
     2031        if (pCritSect)
     2032            PDMCritSectLeave(pCritSect);
    20282033    } /* run loop */
    20292034
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