Changeset 31766 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 18, 2010 2:31:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r31751 r31766 7203 7203 7204 7204 /** 7205 * Progress cancelation callback for fault tolerance VM poweron 7206 */ 7207 static void faultToleranceProgressCancelCallback(void *pvUser) 7208 { 7209 PVM pVM = (PVM)pvUser; 7210 7211 if (pVM) 7212 FTMR3CancelStandby(pVM); 7213 } 7214 7215 /** 7205 7216 * Thread function which starts the VM (also from saved state) and 7206 7217 * track progress. … … 7474 7485 rc = pMachine->COMGETTER(FaultTolerancePassword)(bstrPassword.asOutParam()); 7475 7486 } 7476 if ( SUCCEEDED(rc))7487 if (task->mProgress->setCancelCallback(faultToleranceProgressCancelCallback, pVM)) 7477 7488 { 7478 Utf8Str strAddress(bstrAddress); 7479 const char *pszAddress = strAddress.isEmpty() ? NULL : strAddress.c_str(); 7480 Utf8Str strPassword(bstrPassword); 7481 const char *pszPassword = strPassword.isEmpty() ? NULL : strPassword.c_str(); 7482 7483 /** @todo set progress cancel callback! */ 7484 7485 /* Power on the FT enabled VM. */ 7486 vrc = FTMR3PowerOn(pVM, (task->mEnmFaultToleranceState == FaultToleranceState_Master) /* fMaster */, uInterval, pszAddress, uPort, pszPassword); 7487 AssertRC(vrc); 7489 if (SUCCEEDED(rc)) 7490 { 7491 Utf8Str strAddress(bstrAddress); 7492 const char *pszAddress = strAddress.isEmpty() ? NULL : strAddress.c_str(); 7493 Utf8Str strPassword(bstrPassword); 7494 const char *pszPassword = strPassword.isEmpty() ? NULL : strPassword.c_str(); 7495 7496 /* Power on the FT enabled VM. */ 7497 vrc = FTMR3PowerOn(pVM, (task->mEnmFaultToleranceState == FaultToleranceState_Master) /* fMaster */, uInterval, pszAddress, uPort, pszPassword); 7498 AssertRC(vrc); 7499 } 7500 task->mProgress->setCancelCallback(NULL, NULL); 7488 7501 } 7502 else 7503 rc = E_FAIL; 7489 7504 } 7490 7505 else if (task->mStartPaused)
Note:
See TracChangeset
for help on using the changeset viewer.