VirtualBox

Changeset 25930 in vbox for trunk/include/VBox/com


Ignore:
Timestamp:
Jan 20, 2010 12:59:47 PM (15 years ago)
Author:
vboxsync
Message:

Main: remove separate snapshots tree lock, have snapshots list use machine lock instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/AutoLock.h

    r25906 r25930  
    7575    LOCKCLASS_LISTOFMACHINES = 4,           // list of machines in VirtualBox object
    7676    LOCKCLASS_MACHINEOBJECT = 5,            // Machine object lock
    77     LOCKCLASS_LISTOFSNAPSHOTS = 6,          // list of snapshots in Machine object
    78     LOCKCLASS_SNAPSHOTOBJECT = 7,           // snapshot object locks (need to have lower order
    79                                             // than both MACHINEOBJECT and LOCKCLASS_MACHINELIST since
    80                                             // the list of snapshots in Machine is LOCKCLASS_MACHINELIST)
    81     LOCKCLASS_LISTOFMEDIA = 8,              // list of media (hard disks, DVDs, floppies) in VirtualBox object
    82     LOCKCLASS_LISTOFOTHEROBJECTS = 9,       // any other list of objects
    83     LOCKCLASS_OTHEROBJECT = 10,             // any regular object member variable lock
    84     LOCKCLASS_USBLIST = 11,                 // temporary hack to avoid having to clean up the USB filters
     77    LOCKCLASS_SNAPSHOTOBJECT = 6,           // snapshot object locks
     78                                            // (the snapshots tree, including the child pointers in Snapshot,
     79                                            // is protected by the normal Machine object lock)
     80    LOCKCLASS_LISTOFMEDIA = 7,              // list of media (hard disks, DVDs, floppies) in VirtualBox object
     81    LOCKCLASS_LISTOFOTHEROBJECTS = 8,       // any other list of objects
     82    LOCKCLASS_OTHEROBJECT = 9,              // any regular object member variable lock
     83    LOCKCLASS_USBLIST = 10,                 // temporary hack to avoid having to clean up the USB filters
    8584                                            // too much @todo r=dj get rid of this!
    86     LOCKCLASS_PROGRESSLIST = 12,            // list of progress objects in VirtualBox; no other object lock
     85    LOCKCLASS_PROGRESSLIST = 11,            // list of progress objects in VirtualBox; no other object lock
    8786                                            // may be held after this!
    88     LOCKCLASS_OBJECTSTATE = 13              // object state lock (handled by AutoCaller classes)
     87    LOCKCLASS_OBJECTSTATE = 12              // object state lock (handled by AutoCaller classes)
    8988};
    9089
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