Changeset 13878 in vbox
- Timestamp:
- Nov 5, 2008 3:56:44 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 38876
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r13877 r13878 113 113 * 2. On successful initialization, the structure keeps the Console caller 114 114 * until destruction (to ensure Console remains in the Ready state and won't 115 * be accident ially uninitialized). Forgetting to delete the created task115 * be accidentally uninitialized). Forgetting to delete the created task 116 116 * will lead to Console::uninit() stuck waiting for releasing all added 117 117 * callers. … … 240 240 }; 241 241 242 // constructor / des ctructor242 // constructor / destructor 243 243 ///////////////////////////////////////////////////////////////////////////// 244 244 … … 401 401 402 402 /* 403 * Uninit all children that ise addDependentChild()/removeDependentChild()403 * Uninit all children that use addDependentChild()/removeDependentChild() 404 404 * in their init()/uninit() methods. 405 405 */ … … 1767 1767 * If we fail here it means a PowerDown() call happened on another 1768 1768 * thread while we were doing Pause() (which leaves the Console lock). 1769 * We assign PowerDown() a higher prece ndence than SaveState(),1769 * We assign PowerDown() a higher precedence than SaveState(), 1770 1770 * therefore just return the error to the caller. 1771 1771 */ … … 2012 2012 // 2013 2013 /* bird: It is not permitted to attach or detach while the VM is saving, 2014 * is restoring or has stopped - defini ntly not.2014 * is restoring or has stopped - definitely not. 2015 2015 * 2016 2016 * Attaching while starting, well, if you don't create any deadlock it … … 2311 2311 * If we fail here it means a PowerDown() call happened on another 2312 2312 * thread while we were doing Pause() (which leaves the Console lock). 2313 * We assign PowerDown() a higher prece ndence than TakeSnapshot(),2313 * We assign PowerDown() a higher precedence than TakeSnapshot(), 2314 2314 * therefore just return the error to the caller. 2315 2315 */ … … 2337 2337 /* 2338 2338 * state file is non-null only when the VM is paused 2339 * (i.e. creat eing a snapshot online)2339 * (i.e. creating a snapshot online) 2340 2340 */ 2341 2341 ComAssertBreak ( … … 2770 2770 * This will be both read and updated to eState or other appropriate state. 2771 2771 * @param pszPath The path to the media / drive which is now being mounted / captured. 2772 * If NULL no media or drive is attached and the lunwill be configured with2772 * If NULL no media or drive is attached and the LUN will be configured with 2773 2773 * the default block driver with no media. This will also be the state if 2774 2774 * mounting / capturing the specified media / drive fails. … … 2850 2850 * This will be both read and updated to eState or other appropriate state. 2851 2851 * @param pszPath The path to the media / drive which is now being mounted / captured. 2852 * If NULL no media or drive is attached and the lunwill be configured with2852 * If NULL no media or drive is attached and the LUN will be configured with 2853 2853 * the default block driver with no media. This will also be the state if 2854 2854 * mounting / capturing the specified media / drive fails. … … 3199 3199 #ifdef VBOX_WITH_E1000 3200 3200 /* 3201 * Perha rps it would be much wiser to wrap both 'pcnet' and 'e1000'3201 * Perhaps it would be much wiser to wrap both 'pcnet' and 'e1000' 3202 3202 * into generic 'net' device. 3203 3203 */ … … 4072 4072 * Setting \a aQuiet to true is useful for methods that don't want to return 4073 4073 * the failed result code to the caller when this method fails (e.g. need to 4074 * silently check for the mpVM ava liability).4074 * silently check for the mpVM availability). 4075 4075 * 4076 4076 * When mpVM is NULL but \a aAllowNullVM is true, a corresponding error will be … … 4540 4540 * Internal power off worker routine. 4541 4541 * 4542 * This method may be called only at certain places with the foll iwing meaning4542 * This method may be called only at certain places with the following meaning 4543 4543 * as shown below: 4544 4544 * … … 4843 4843 * powerDown() is called from EMT (i.e. from vmstateChangeCallback() 4844 4844 * on receiving VM-initiated VMSTATE_OFF), VMSTATE_TERMINATE hasn't 4845 * occur ed yet. This is okay, because mMachineState is already4845 * occurred yet. This is okay, because mMachineState is already 4846 4846 * Stopping in this case, so any other attempt to call PowerDown() 4847 4847 * will be rejected. */ … … 5054 5054 else 5055 5055 { 5056 /* remove the old mach hine folder (when changed)5056 /* remove the old machine folder (when changed) 5057 5057 * or the global folder if any (when new) */ 5058 5058 if (it != oldFolders.end() || … … 5719 5719 * standard output followed by a carriage return. Anything further written to standard 5720 5720 * output will be ignored. If it returns a non-zero exit code, or does not write an 5721 * intellig able interface name to standard output, it will be treated as having failed.5721 * intelligible interface name to standard output, it will be treated as having failed. 5722 5722 * For now, this method only works on Linux. 5723 5723 * … … 6167 6167 * @param rc VBox status code. 6168 6168 * @param pszFormat Printf-like error message. 6169 * @param args Various number of argumen s for the error message.6169 * @param args Various number of arguments for the error message. 6170 6170 * 6171 6171 * @thread EMT, VMPowerUp... … … 7104 7104 } 7105 7105 7106 /* lock the console sonce we're going to access it */7106 /* lock the console once we're going to access it */ 7107 7107 AutoWriteLock thatLock (that); 7108 7108 -
trunk/src/VBox/Main/include/ConsoleImpl.h
r13837 r13878 61 61 * The translatable error message is defined in null context. 62 62 * 63 * Intended to used only within Console children (i ,e. Keyboard, Mouse,63 * Intended to used only within Console children (i.e. Keyboard, Mouse, 64 64 * Display, etc.). 65 65 * … … 365 365 /** 366 366 * A deviation of SaveVMPtr that doesn't set the error info on failure. 367 * Inten edefor pieces of code that don't need to return the VM access367 * Intended for pieces of code that don't need to return the VM access 368 368 * failure to the caller. The usage pattern is: 369 369 * <code>
Note:
See TracChangeset
for help on using the changeset viewer.