- Timestamp:
- Jun 18, 2010 3:33:22 PM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MediumImpl.cpp
r30309 r30314 5433 5433 } 5434 5434 5435 // deregister the task registered in createDiffStorage() 5436 Assert(m->numCreateDiffTasks != 0); 5437 --m->numCreateDiffTasks; 5438 5435 5439 if (task.isAsync()) 5436 5440 { … … 5446 5450 if (task.m_pfNeedsSaveSettings) 5447 5451 *task.m_pfNeedsSaveSettings = fNeedsSaveSettings; 5448 5449 /* deregister the task registered in createDiffStorage() */5450 Assert(m->numCreateDiffTasks != 0);5451 --m->numCreateDiffTasks;5452 5452 5453 5453 /* Note that in sync mode, it's the caller's responsibility to -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r30207 r30314 3496 3496 3497 3497 /** 3498 * Helper function to write out the configuration tree. 3498 * Helper function which actually writes out VirtualBox.xml, the main configuration file. 3499 * Gets called from the public VirtualBox::SaveSettings() as well as from various other 3500 * places internally when settings need saving. 3499 3501 * 3500 3502 * @note Caller must have locked the VirtualBox object for writing! … … 3569 3571 settings::MediaList hardDisksTemp; 3570 3572 for (MediaList::const_iterator it = m->ollHardDisks.begin(); 3571 3572 3573 it != m->ollHardDisks.end(); 3574 ++it) 3573 3575 { 3574 3576 settings::Medium med; … … 3581 3583 settings::MediaList dvdsTemp; 3582 3584 for (MediaList::const_iterator it = m->ollDVDImages.begin(); 3583 3584 3585 it != m->ollDVDImages.end(); 3586 ++it) 3585 3587 { 3586 3588 settings::Medium med; … … 3593 3595 settings::MediaList floppiesTemp; 3594 3596 for (MediaList::const_iterator it = m->ollFloppyImages.begin(); 3595 3596 3597 it != m->ollFloppyImages.end(); 3598 ++it) 3597 3599 { 3598 3600 settings::Medium med; … … 4588 4590 { 4589 4591 listeners.Add(*pp); 4590 } 4591 #endif 4592 } 4593 #endif 4592 4594 } 4593 4595 … … 4613 4615 4614 4616 /** 4615 * Would be just handleCallback(cbI) in an ideal world, unfortunately our 4617 * Would be just handleCallback(cbI) in an ideal world, unfortunately our 4616 4618 * consumers want to be invoked via IDispatch, thus going the hard way. 4617 4619 */ … … 4769 4771 if (aSaveRegistry) 4770 4772 { 4773 AutoWriteLock vboxLock(this COMMA_LOCKVAL_SRC_POS); 4771 4774 rc = saveSettings(); 4775 vboxLock.release(); 4776 4772 4777 if (FAILED(rc)) 4773 4778 unregisterDHCPServer(aDHCPServer, false /* aSaveRegistry */); … … 4811 4816 if (aSaveRegistry) 4812 4817 { 4818 AutoWriteLock vboxLock(this COMMA_LOCKVAL_SRC_POS); 4813 4819 rc = saveSettings(); 4820 vboxLock.release(); 4821 4814 4822 if (FAILED(rc)) 4815 4823 registerDHCPServer(aDHCPServer, false /* aSaveRegistry */);
Note:
See TracChangeset
for help on using the changeset viewer.