VirtualBox

Changeset 4592 in vbox


Ignore:
Timestamp:
Sep 7, 2007 4:35:17 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24226
Message:

Give up earlier, esp. if we're not the EMT - just had EMT in a HLT loop and the timer thread racing each other.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/TMAllVirtual.cpp

    r4071 r4592  
    194194     * that might occure at any point in the return path as well.
    195195     */
    196     for (int cTries = 100;;)
     196    for (int cTries = 50;;)
    197197    {
    198198        u64PrevNanoTS = ASMAtomicReadU64(&pVM->tm.s.u64VirtualRawPrev);
     
    202202            break;
    203203        AssertBreak(--cTries <= 0, );
     204        if (cTries < 25 && !VM_IS_EMT(pVM)) /* give up early */
     205            break;
    204206    }
    205207
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