Changeset 98262 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jan 24, 2023 1:42:14 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 155461
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/AutoCaller.h
r98103 r98262 69 69 * { 70 70 * AutoCaller autoCaller(this); 71 * HRESULT hrc = autoCaller. rc();71 * HRESULT hrc = autoCaller.hrc(); 72 72 * if (SUCCEEDED(hrc)) 73 73 * { … … 115 115 116 116 /** 117 * Returns the stored result code returned by ObjectState::addCaller() after 118 * instance creation or after the last #add() call. 119 * 120 * A successful result code means the number of callers was successfully 121 * increased. 122 */ 123 HRESULT hrc() const { return mRC; } 124 125 /** 117 126 * Returns the stored result code returned by ObjectState::addCaller() 118 127 * after instance creation or after the last #add() call. A successful 119 128 * result code means the number of callers was successfully increased. 129 * @deprecated use hrc() 120 130 */ 121 131 HRESULT rc() const { return mRC; } … … 230 240 * { 231 241 * AutoLimitedCaller autoCaller(this); 232 * HRESULT hrc = autoCaller. rc();242 * HRESULT hrc = autoCaller.hrc(); 233 243 * if (SUCCEEDED(hrc)) 234 244 * { -
trunk/src/VBox/Main/include/AutoStateDep.h
r98103 r98262 44 44 * @code 45 45 * AutoCaller autoCaller(this); 46 * if (FAILED(autoCaller. rc())) return autoCaller.rc();46 * if (FAILED(autoCaller.hrc())) return autoCaller.hrc(); 47 47 * 48 48 * Machine::AutoStateDependency<MutableStateDep> adep(mParent); 49 * if (FAILED(stateDep. rc())) return stateDep.rc();49 * if (FAILED(stateDep.hrc())) return stateDep.hrc(); 50 50 * ... 51 51 * // code that depends on the particular machine state … … 103 103 104 104 /** Returns the result of Machine::addStateDependency(). */ 105 HRESULT hrc() const { return mRC; } 106 /** Returns the result of Machine::addStateDependency(). 107 * @deprecated Use #hrc() instead. */ 105 108 HRESULT rc() const { return mRC; } 106 109 107 /** Shortcut to SUCCEEDED( rc()). */110 /** Shortcut to SUCCEEDED(hrc()). */ 108 111 bool isOk() const { return SUCCEEDED(mRC); } 109 112 … … 136 139 * this object is destroyed. If the machine state cannot be protected (as 137 140 * a result of the state change currently in progress), this instance's 138 * # rc() method will indicate a failure, and the caller is not allowed to141 * #hrc() method will indicate a failure, and the caller is not allowed to 139 142 * rely on any particular machine state and should return the failed 140 143 * result code to the upper level. … … 148 151 * Succeeds only if the machine state is in one of the mutable states, and 149 152 * guarantees the given mutable state won't change before this object is 150 * destroyed. If the machine is not mutable, this instance's # rc() method153 * destroyed. If the machine is not mutable, this instance's #hrc() method 151 154 * will indicate a failure, and the caller is not allowed to rely on any 152 155 * particular machine state and should return the failed result code to … … 167 170 * if the machine is in the Saved state, and guarantees the given mutable 168 171 * state won't change before this object is destroyed. If the machine is 169 * not mutable, this instance's # rc() method will indicate a failure, and172 * not mutable, this instance's #hrc() method will indicate a failure, and 170 173 * the caller is not allowed to rely on any particular machine state and 171 174 * should return the failed result code to the upper level. … … 183 186 * if the machine is in the Running or Paused state, and guarantees the 184 187 * given mutable state won't change before this object is destroyed. If 185 * the machine is not mutable, this instance's # rc() method will indicate188 * the machine is not mutable, this instance's #hrc() method will indicate 186 189 * a failure, and the caller is not allowed to rely on any particular 187 190 * machine state and should return the failed result code to the upper … … 200 203 * if the machine is in the Running, Paused or Saved state, and guarantees 201 204 * the given mutable state won't change before this object is destroyed. 202 * If the machine is not mutable, this instance's # rc() method will205 * If the machine is not mutable, this instance's #hrc() method will 203 206 * indicate a failure, and the caller is not allowed to rely on any 204 207 * particular machine state and should return the failed result code to -
trunk/src/VBox/Main/include/ConsoleImpl.h
r98123 r98262 437 437 doRelease(); 438 438 } 439 /** Restores the number of callers after by #release(). # rc() must be439 /** Restores the number of callers after by #release(). #hrc() must be 440 440 * rechecked to ensure the operation succeeded. */ 441 441 void addYY() … … 445 445 } 446 446 /** Returns the result of Console::addVMCaller() */ 447 HRESULT hrc() const { return mRC; } 448 /** Returns the result of Console::addVMCaller() 449 * @deprecated Use #hrc() instead. */ 447 450 HRESULT rc() const { return mRC; } 448 /** Shortcut to SUCCEEDED( rc()) */451 /** Shortcut to SUCCEEDED(hrc()) */ 449 452 bool isOk() const { return SUCCEEDED(mRC); } 450 453 protected: … … 471 474 * <code> 472 475 * AutoVMCaller autoVMCaller(this); 473 * if (FAILED(autoVMCaller. rc())) return autoVMCaller.rc();476 * if (FAILED(autoVMCaller.hrc())) return autoVMCaller.hrc(); 474 477 * ... 475 478 * VMR3ReqCall (mpUVM, ... … … 540 543 541 544 /** The combined result of Console::addVMCaller() and Console::safeVMPtrRetainer */ 542 HRESULT rc() const { return Base::isOk()? mRC: Base::rc(); } 543 /** Shortcut to SUCCEEDED(rc()) */ 545 HRESULT hrc() const { return Base::isOk() ? mRC : Base::hrc(); } 546 /** The combined result of Console::addVMCaller() and Console::safeVMPtrRetainer 547 * @deprecated Use hrc() instead. */ 548 HRESULT rc() const { return Base::isOk() ? mRC : Base::hrc(); } 549 /** Shortcut to SUCCEEDED(hrc()) */ 544 550 bool isOk() const { return SUCCEEDED(mRC) && Base::isOk(); } 545 551 … … 569 575 * Console::SafeVMPtr ptrVM(mParent); 570 576 * if (!ptrVM.isOk()) 571 * return ptrVM. rc();577 * return ptrVM.hrc(); 572 578 * ... 573 579 * VMR3ReqCall(ptrVM.rawUVM(), ... … … 588 594 * <code> 589 595 * Console::SafeVMPtrQuiet pVM(mParent); 590 * if (pVM. rc())596 * if (pVM.hrc()) 591 597 * VMR3ReqCall(pVM, ... 592 598 * return S_OK; -
trunk/src/VBox/Main/include/GuestSessionImpl.h
r98103 r98262 418 418 /** Session timeout (in ms). */ 419 419 uint32_t mTimeout; 420 /** The last returned session status 421 * returned from the guest side. */ 422 int mRC; 420 /** The last returned session VBox status status returned from the guest side. */ 421 int mVrc; 423 422 /** Object ID allocation bitmap; clear bits are free, set bits are busy. */ 424 423 uint64_t bmObjectIds[VBOX_GUESTCTRL_MAX_OBJECTS / sizeof(uint64_t) / 8]; … … 443 442 , mProtocolVersion(rThat.mProtocolVersion) 444 443 , mTimeout(rThat.mTimeout) 445 , m RC(rThat.mRC)444 , mVrc(rThat.mVrc) 446 445 { 447 446 memcpy(&bmObjectIds, &rThat.bmObjectIds, sizeof(bmObjectIds));
Note:
See TracChangeset
for help on using the changeset viewer.