Changeset 25836 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 14, 2010 4:44:46 PM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r25834 r25836 152 152 Data() 153 153 #ifdef VBOX_WITH_USB 154 : usbListsLock(LOCKCLASS_ HOSTLIST)154 : usbListsLock(LOCKCLASS_USBLIST) 155 155 #endif 156 156 {}; -
trunk/src/VBox/Main/MediumImpl.cpp
r25443 r25836 1657 1657 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1658 1658 1659 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);1660 1661 1659 /* we access mParent */ 1662 1660 AutoReadLock treeLock(m->pVirtualBox->hardDiskTreeLockHandle() COMMA_LOCKVAL_SRC_POS); 1661 1662 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1663 1663 1664 1664 if (m->pParent.isNull()) … … 3008 3008 AssertComRCReturn(autoCaller.rc(), false); 3009 3009 3010 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);3011 3012 3010 /* we access children */ 3013 3011 AutoReadLock treeLock(m->pVirtualBox->hardDiskTreeLockHandle() COMMA_LOCKVAL_SRC_POS); 3012 3013 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 3014 3014 3015 3015 switch (m->type) -
trunk/src/VBox/Main/glue/AutoLock.cpp
r25834 r25836 74 74 { LOCKCLASS_USBPROXYSERVICE, "3-USBPROXYSERVICE" }, 75 75 { LOCKCLASS_HOSTOBJECT, "4-HOSTOBJECT" }, 76 { LOCKCLASS_HOSTLIST, "5-HOSTLIST" }, 77 { LOCKCLASS_OTHEROBJECT, "6-OTHEROBJECT" }, 78 { LOCKCLASS_OTHERLIST, "7-OTHERLIST" }, 79 { LOCKCLASS_OBJECTSTATE, "8-OBJECTSTATE" } 76 { LOCKCLASS_OTHEROBJECT, "5-OTHEROBJECT" }, 77 { LOCKCLASS_OTHERLIST, "6-OTHERLIST" }, 78 { LOCKCLASS_SNAPSHOTOBJECT, "7-SNAPSHOTOBJECT" }, 79 { LOCKCLASS_USBLIST, "8-USBLIST" }, 80 { LOCKCLASS_OBJECTSTATE, "9-OBJECTSTATE" } 80 81 }; 81 82 -
trunk/src/VBox/Main/include/SnapshotImpl.h
r25834 r25836 91 91 // public methods only for internal purposes 92 92 93 94 93 /** 95 94 * Simple run-time type identification without having to enable C++ RTTI. … … 100 99 { 101 100 return clsidSnapshot; 101 } 102 103 /** 104 * Override of the default locking class to be used for validating lock 105 * order with the standard member lock handle. 106 */ 107 virtual VBoxLockingClass getLockingClass() const 108 { 109 return LOCKCLASS_SNAPSHOTOBJECT; 102 110 } 103 111
Note:
See TracChangeset
for help on using the changeset viewer.