Changeset 25880 in vbox for trunk/src/VBox
- Timestamp:
- Jan 18, 2010 11:26:35 AM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r25860 r25880 97 97 98 98 Machine::Data::Data() 99 : mSnapshotsTreeLockHandle(LOCKCLASS_ MACHINELIST)99 : mSnapshotsTreeLockHandle(LOCKCLASS_LISTOFSNAPSHOTS) 100 100 { 101 101 mRegistered = FALSE; … … 6133 6133 HRESULT rc = S_OK; 6134 6134 6135 /* Make sure the attached hard disks don't get unregistered until we6136 * associate them with tis machine (important for VMs loaded (opened) after6137 * VirtualBox startup) */6138 AutoReadLock vboxLock(mParent COMMA_LOCKVAL_SRC_POS);6139 6140 6135 for (settings::StorageControllersList::const_iterator it = data.llStorageControllers.begin(); 6141 6136 it != data.llStorageControllers.end(); -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r25860 r25880 175 175 Data() 176 176 : pMainConfigFile(NULL), 177 ollMachines(LOCKCLASS_ VIRTUALBOXLIST),178 ollGuestOSTypes(LOCKCLASS_ VIRTUALBOXLIST),179 ollHardDisks(LOCKCLASS_ VIRTUALBOXLIST),180 ollDVDImages(LOCKCLASS_ VIRTUALBOXLIST),181 ollFloppyImages(LOCKCLASS_ VIRTUALBOXLIST),182 ollSharedFolders(LOCKCLASS_ VIRTUALBOXLIST),183 ollDHCPServers(LOCKCLASS_ VIRTUALBOXLIST),177 ollMachines(LOCKCLASS_LISTOFMACHINES), 178 ollGuestOSTypes(LOCKCLASS_LISTOFOTHEROBJECTS), 179 ollHardDisks(LOCKCLASS_LISTOFMEDIA), 180 ollDVDImages(LOCKCLASS_LISTOFMEDIA), 181 ollFloppyImages(LOCKCLASS_LISTOFMEDIA), 182 ollSharedFolders(LOCKCLASS_LISTOFOTHEROBJECTS), 183 ollDHCPServers(LOCKCLASS_LISTOFOTHEROBJECTS), 184 184 mtxProgressOperations(LOCKCLASS_PROGRESSLIST), 185 185 updateReq(UPDATEREQARG), … … 3658 3658 AssertComRCReturn(autoCaller.rc(), autoCaller.rc()); 3659 3659 3660 ObjectsList<Medium> ollAll(LOCKCLASS_ VIRTUALBOXLIST);3660 ObjectsList<Medium> ollAll(LOCKCLASS_LISTOFMEDIA); 3661 3661 ollAll.appendOtherList(m->ollDVDImages); 3662 3662 ollAll.appendOtherList(m->ollFloppyImages); -
trunk/src/VBox/Main/glue/AutoLock.cpp
r25842 r25880 70 70 } aClasses[] = 71 71 { 72 { LOCKCLASS_VIRTUALBOXOBJECT, "1-VIRTUALBOXOBJECT" }, 73 { LOCKCLASS_VIRTUALBOXLIST, "2-VIRTUALBOXLIST" }, 74 { LOCKCLASS_USBPROXYSERVICE, "3-USBPROXYSERVICE" }, 75 { LOCKCLASS_HOSTOBJECT, "4-HOSTOBJECT" }, 76 { LOCKCLASS_MACHINEOBJECT, "5-MACHINEOBJECT" }, 77 { LOCKCLASS_MACHINELIST, "6-MACHINELIST" }, 78 { LOCKCLASS_SNAPSHOTOBJECT, "7-SNAPSHOTOBJECT" }, 79 { LOCKCLASS_OTHEROBJECT, "8-OTHEROBJECT" }, 80 { LOCKCLASS_USBLIST, "9-USBLIST" }, 81 { LOCKCLASS_PROGRESSLIST, "10-PROGRESSLIST" }, 82 { LOCKCLASS_OBJECTSTATE, "11-OBJECTSTATE" } 72 { LOCKCLASS_VIRTUALBOXOBJECT, "1-VIRTUALBOXOBJECT" }, 73 { LOCKCLASS_USBPROXYSERVICE, "2-USBPROXYSERVICE" }, 74 { LOCKCLASS_HOSTOBJECT, "3-HOSTOBJECT" }, 75 { LOCKCLASS_LISTOFMACHINES, "4-LISTOFMACHINES" }, 76 { LOCKCLASS_MACHINEOBJECT, "5-MACHINEOBJECT" }, 77 { LOCKCLASS_LISTOFSNAPSHOTS, "6-LISTOFSNAPSHOTS" }, 78 { LOCKCLASS_SNAPSHOTOBJECT, "7-SNAPSHOTOBJECT" }, 79 { LOCKCLASS_LISTOFMEDIA, "8-LISTOFMEDIA" }, 80 { LOCKCLASS_LISTOFOTHEROBJECTS, "9-LISTOFOTHEROBJECTS" }, 81 { LOCKCLASS_OTHEROBJECT, "10-OTHEROBJECT" }, 82 { LOCKCLASS_USBLIST, "11-USBLIST" }, 83 { LOCKCLASS_PROGRESSLIST, "12-PROGRESSLIST" }, 84 { LOCKCLASS_OBJECTSTATE, "13-OBJECTSTATE" } 83 85 }; 84 86
Note:
See TracChangeset
for help on using the changeset viewer.