Changeset 50436 in vbox
- Timestamp:
- Feb 12, 2014 6:53:15 PM (11 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/BandwidthControlImpl.cpp
r50427 r50436 5 5 6 6 /* 7 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 56 56 * @returns COM result indicator. 57 57 * @param aParent Pointer to our parent object. 58 * @param aName Name of the storage controller.59 * @param aInstance Instance number of the storage controller.60 58 */ 61 59 HRESULT BandwidthControl::init(Machine *aParent) … … 132 130 133 131 /** 134 * Initializes the storage controllerobject given another guest object132 * Initializes the bandwidth control object given another guest object 135 133 * (a kind of copy constructor). This object makes a private copy of data 136 134 * of the original object passed as an argument. … … 163 161 ComObjPtr<BandwidthGroup> group; 164 162 group.createObject(); 165 group->init (this, *it);163 group->initCopy(this, *it); 166 164 m->llBandwidthGroups->push_back(group); 167 165 } … … 201 199 AutoWriteLock wl(this COMMA_LOCKVAL_SRC_POS); 202 200 203 /* create private copies of all filters */201 /* create private copies of all bandwidth groups */ 204 202 m->llBandwidthGroups.backup(); 205 203 m->llBandwidthGroups->clear(); … … 269 267 AutoWriteLock peerlock(m->pPeer COMMA_LOCKVAL_SRC_POS); 270 268 271 /* Commit all changes to new controllers (this will reshare data with269 /* Commit all changes to new groups (this will reshare data with 272 270 * peers for those who have peers) */ 273 271 BandwidthGroupList *newList = new BandwidthGroupList(); … … 296 294 } 297 295 298 #if 0 299 /* uninit old peer's controllers that are left */ 296 /* uninit old peer's groups that are left */ 300 297 for (it = m->pPeer->m->llBandwidthGroups->begin(); 301 298 it != m->pPeer->m->llBandwidthGroups->end(); 302 299 ++it) 303 300 (*it)->uninit(); 304 #endif 305 306 /* attach new list of controllers to our peer */ 301 302 /* attach new list of groups to our peer */ 307 303 m->pPeer->m->llBandwidthGroups.attach(newList); 308 304 } … … 317 313 { 318 314 /* the list of groups itself is not changed, 319 * just commit changes to controllers themselves */315 * just commit changes to groups themselves */ 320 316 commitBandwidthGroups = true; 321 317 } … … 361 357 362 358 /** 363 * Returns a storage controllerobject with the given name.359 * Returns a bandwidth group object with the given name. 364 360 * 365 * @param aName storage controllername to find366 * @param aBandwidthGroup where to return the found storage controller361 * @param aName bandwidth group name to find 362 * @param aBandwidthGroup where to return the found bandwidth group 367 363 * @param aSetError true to set extended error info on failure 368 364 */ -
trunk/src/VBox/Main/src-server/BandwidthGroupImpl.cpp
r49738 r50436 5 5 6 6 /* 7 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 49 49 * @returns COM result indicator. 50 50 * @param aParent Pointer to our parent object. 51 * @param aName Name of the storage controller. 52 * @param aInstance Instance number of the storage controller. 51 * @param aName Name of the bandwidth group. 52 * @param aType Type of the bandwidth group (net, disk). 53 * @param aMaxBytesPerSec Maximum bandwidth for the bandwidth group. 53 54 */ 54 55 HRESULT BandwidthGroup::init(BandwidthControl *aParent, … … 144 145 145 146 /** 146 * Initializes the storage controllerobject given another guest object147 * Initializes the bandwidth group object given another guest object 147 148 * (a kind of copy constructor). This object makes a private copy of data 148 149 * of the original object passed as an argument.
Note:
See TracChangeset
for help on using the changeset viewer.