儲存庫 vbox 的更動 77585
- 時間撮記:
- 2019-3-6 下午04:27:47 (6 年 以前)
- svn:sync-xref-src-repo-rev:
- 129205
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/GuestCtrlPrivate.cpp
r77157 r77585 1443 1443 const GuestWaitEventPayload *pPayload) 1444 1444 { 1445 if ( ASMAtomicReadBool(&mfAborted))1445 if (mfAborted) 1446 1446 return VERR_CANCELLED; 1447 1447 … … 1481 1481 int rc = VINF_SUCCESS; 1482 1482 1483 if ( ASMAtomicReadBool(&mfAborted))1483 if (mfAborted) 1484 1484 rc = VERR_CANCELLED; 1485 1485 … … 1489 1489 1490 1490 rc = RTSemEventWait(mEventSem, msTimeout ? msTimeout : RT_INDEFINITE_WAIT); 1491 if (ASMAtomicReadBool(&mfAborted)) 1491 if ( RT_SUCCESS(rc) 1492 && mfAborted) 1493 { 1492 1494 rc = VERR_CANCELLED; 1495 } 1496 1493 1497 if (RT_SUCCESS(rc)) 1494 1498 { … … 1516 1520 int GuestWaitEvent::Cancel(void) 1517 1521 { 1518 AssertReturn(!mfAborted, VERR_CANCELLED); 1519 ASMAtomicWriteBool(&mfAborted, true); 1522 if (mfAborted) /* Already aborted? */ 1523 return VINF_SUCCESS; 1524 1525 mfAborted = true; 1520 1526 1521 1527 #ifdef DEBUG_andy
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器