VirtualBox

Changeset 21591 in vbox


Ignore:
Timestamp:
Jul 14, 2009 10:08:57 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50090
Message:

PDMCritSectEnter: PAUSE when spinning.

File:
1 edited

Legend:

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

    r21264 r21591  
    206206        if (ASMAtomicCmpXchgS32(&pCritSect->s.Core.cLockers, 0, -1))
    207207            return pdmCritSectEnterFirst(pCritSect, hNativeSelf);
    208         /** @todo need pause/nop instruction here! */
     208        ASMNopPause();
    209209        /** @todo Should use monitor/mwait on e.g. &cLockers here, possibly with a
    210210           cli'ed pendingpreemption check up front using sti w/ instruction fusing
    211211           for avoiding races. Hmm ... This is assuming the other party is actually
    212            executing code on another CPU... */
     212           executing code on another CPU ... which we could keep track of if we
     213           wanted. */
    213214    }
    214215
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