VirtualBox

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


Ignore:
Timestamp:
Aug 12, 2021 9:30:36 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146285
Message:

VMM/PDMCritSectRwEnterShared: Some more code refactoring. bugref:6695

File:
1 edited

Legend:

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

    r90672 r90673  
    5151*   Defined Constants And Macros                                                                                                 *
    5252*********************************************************************************************************************************/
     53#if 0 /* unused */
    5354/** The number loops to spin for shared access in ring-3. */
    5455#define PDMCRITSECTRW_SHRD_SPIN_COUNT_R3        20
     
    6465/** The number loops to spin for exclusive access in the raw-mode context. */
    6566#define PDMCRITSECTRW_EXCL_SPIN_COUNT_RC        256
     67#endif
    6668
    6769/** Max number of write or write/read recursions. */
     
    267269# endif
    268270
    269     /*
    270      * Wait for the direction to switch.
    271      */
    272271    for (uint32_t iLoop = 0; ; iLoop++)
    273272    {
     273        /*
     274         * Wait for the direction to switch.
     275         */
    274276        int rc;
    275277# ifdef IN_RING3
     
    400402
    401403    /*
    402      * Get cracking...
     404     * Work the state.
    403405     */
    404406    uint64_t u64State    = PDMCRITSECTRW_READ_STATE(&pThis->s.Core.u.s.u64State);
    405407    uint64_t u64OldState = u64State;
    406 
    407408    for (;;)
    408409    {
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