VirtualBox

Ignore:
Timestamp:
Mar 15, 2012 3:45:42 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76858
Message:

Main/VirtualBox+Machine+Snapshot+Medium: fix lock order issues introduced by new style of medium registry updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp

    r40432 r40487  
    12711271                    AutoReadLock mlock2(pParent COMMA_LOCKVAL_SRC_POS);
    12721272                    if (pParent->getFirstRegistryMachineId(uuid))
     1273                    {
     1274                        mlock2.release();
     1275                        trgLock.release();
     1276                        srcLock.release();
    12731277                        p->mParent->markRegistryModified(uuid);
     1278                        srcLock.acquire();
     1279                        trgLock.acquire();
     1280                        mlock2.acquire();
     1281                    }
    12741282                }
    12751283                mlock.acquire();
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