VirtualBox

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


Ignore:
Timestamp:
May 31, 2012 4:48:33 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78291
Message:

Main/HostUSBDevice(all platforms)+USBProxyService: redo USB locking, fixes major regression, added lots of assertions to catch locking flaws early, whitespace cleanup
Main/Machine: small USB locking fix to be consistent with the remaining code
Main/Host+glue/AutoLock: replace USB list lock by host lock, small numbering cleanup
Main/Console: redo USB locking, do less in USB callbacks/EMT (addresses long standing todo items), eliminate unsafe iterator parameters

File:
1 edited

Legend:

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

    r40257 r41528  
    7474                                            // (the snapshots tree, including the child pointers in Snapshot,
    7575                                            // is protected by the normal Machine object lock)
    76     LOCKCLASS_LISTOFMEDIA = 7,              // list of media (hard disks, DVDs, floppies) in VirtualBox object
    77     LOCKCLASS_LISTOFOTHEROBJECTS = 8,       // any other list of objects
    78     LOCKCLASS_MEDIUMQUERY = 9,              // lock used to protect Machine::queryInfo
     76    LOCKCLASS_MEDIUMQUERY = 7,              // lock used to protect Machine::queryInfo
     77    LOCKCLASS_LISTOFMEDIA = 8,              // list of media (hard disks, DVDs, floppies) in VirtualBox object
     78    LOCKCLASS_LISTOFOTHEROBJECTS = 9,       // any other list of objects
    7979    LOCKCLASS_OTHEROBJECT = 10,             // any regular object member variable lock
    80     LOCKCLASS_USBLIST = 11,                 // temporary hack to avoid having to clean up the USB filters
    81                                             // too much @todo r=dj get rid of this!
    82     LOCKCLASS_PROGRESSLIST = 12,            // list of progress objects in VirtualBox; no other object lock
     80    LOCKCLASS_PROGRESSLIST = 11,            // list of progress objects in VirtualBox; no other object lock
    8381                                            // may be held after this!
    84     LOCKCLASS_OBJECTSTATE = 13              // object state lock (handled by AutoCaller classes)
     82    LOCKCLASS_OBJECTSTATE = 12              // object state lock (handled by AutoCaller classes)
    8583};
    8684
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