VirtualBox

Changeset 25880 in vbox for trunk/include


Ignore:
Timestamp:
Jan 18, 2010 11:26:35 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56688
Message:

Main: more locking order validation fixes

File:
1 edited

Legend:

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

    r25842 r25880  
    6262    LOCKCLASS_NONE = 0,
    6363    LOCKCLASS_VIRTUALBOXOBJECT = 1,         // highest order: VirtualBox object lock
    64     LOCKCLASS_VIRTUALBOXLIST = 2,           // lock protecting a list in VirtualBox object
    65                                             // (machines list, hard disk tree, shared folders list, ...)
    66     LOCKCLASS_USBPROXYSERVICE = 3,          // USB proxy service object lock
    67     LOCKCLASS_HOSTOBJECT = 4,               // Host object lock
     64    LOCKCLASS_USBPROXYSERVICE = 2,          // USB proxy service object lock
     65    LOCKCLASS_HOSTOBJECT = 3,               // Host object lock
     66    LOCKCLASS_LISTOFMACHINES = 4,           // list of machines in VirtualBox object
    6867    LOCKCLASS_MACHINEOBJECT = 5,            // Machine object lock
    69     LOCKCLASS_MACHINELIST = 6,              // lock protecting a list in a Machine object
     68    LOCKCLASS_LISTOFSNAPSHOTS = 6,          // list of snapshots in Machine object
    7069    LOCKCLASS_SNAPSHOTOBJECT = 7,           // snapshot object locks (need to have lower order
    7170                                            // than both MACHINEOBJECT and LOCKCLASS_MACHINELIST since
    7271                                            // the list of snapshots in Machine is LOCKCLASS_MACHINELIST)
    73     LOCKCLASS_OTHEROBJECT = 8,              // any regular object member variable lock
    74     LOCKCLASS_USBLIST = 9,                  // temporary hack to avoid having to clean up the USB filters
     72    LOCKCLASS_LISTOFMEDIA = 8,              // list of media (hard disks, DVDs, floppies) in VirtualBox object
     73    LOCKCLASS_LISTOFOTHEROBJECTS = 9,       // any other list of objects
     74    LOCKCLASS_OTHEROBJECT = 10,             // any regular object member variable lock
     75    LOCKCLASS_USBLIST = 11,                 // temporary hack to avoid having to clean up the USB filters
    7576                                            // too much @todo r=dj get rid of this!
    76     LOCKCLASS_PROGRESSLIST = 10,             // list of progress objects in VirtualBox; no other object lock
     77    LOCKCLASS_PROGRESSLIST = 12,            // list of progress objects in VirtualBox; no other object lock
    7778                                            // may be held after this!
    78     LOCKCLASS_OBJECTSTATE = 11               // object state lock (handled by AutoCaller classes)
     79    LOCKCLASS_OBJECTSTATE = 13              // object state lock (handled by AutoCaller classes)
    7980};
    8081
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