VirtualBox

Changeset 44781 in vbox


Ignore:
Timestamp:
Feb 21, 2013 1:50:56 PM (12 years ago)
Author:
vboxsync
Message:

VMMDev: Enter the critical section when resettomg and saving state, just to be on the safe side.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r44780 r44781  
    31443144{
    31453145    PVMMDEV pThis = PDMINS_2_DATA(pDevIns, PVMMDEV);
     3146    PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED);
    31463147
    31473148    vmmdevLiveExec(pDevIns, pSSM, SSM_PASS_FINAL);
     
    31853186    }
    31863187
     3188    PDMCritSectLeave(&pThis->CritSect);
    31873189    return VINF_SUCCESS;
    31883190}
     
    34043406{
    34053407    PVMMDEV pThis = PDMINS_2_DATA(pDevIns, PVMMDEV);
     3408    PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED);
    34063409
    34073410    /*
     
    35093512     */
    35103513    pThis->idSession = ASMReadTSC();
     3514
     3515    PDMCritSectLeave(&pThis->CritSect);
    35113516}
    35123517
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