vbox的更動 8708 路徑 trunk/src/VBox/Devices/Storage
- 時間撮記:
- 2008-5-8 下午01:40:32 (17 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r8703 r8708 5276 5276 if (ataWaitForAllAsyncIOIsIdle(pDevIns, 20000)) 5277 5277 { 5278 uint64_t u64Start = RTTimeMilliTS();5279 int rc2 = VINF_SUCCESS;5280 int iFailed = -1;5281 5278 for (unsigned i = 0; i < RT_ELEMENTS(pData->aCts); i++) 5282 5279 { 5283 /* Wait for at most 5 seconds, and if that is elapsed for 100msec 5284 * per remaining thread. Just to be on the safe side. */ 5285 int64_t cMsElapsed = RTTimeMilliTS() - u64Start; 5286 rc = RTThreadWait(pData->aCts[i].AsyncIOThread, 5287 RT_MAX(5000 - cMsElapsed, 100), 5288 NULL); 5289 if (VBOX_FAILURE(rc) && rc != VERR_INVALID_HANDLE) 5290 { 5291 AssertMsg(rc == VERR_TIMEOUT && RTTimeMilliTS() - u64Start >= 5000, 5292 ("rc=%Rrc cMsElapsed=%RI64 ms Now: %RI64 ms i=%d\n", rc, cMsElapsed, RTTimeMilliTS() - u64Start, i)); 5293 rc2 = rc; 5294 iFailed = i; 5295 } 5296 } 5297 AssertMsgRC(rc2, ("Some of the async I/O threads are still running! (%RU64 ms) rc2=%Rrc iFailed=%d\n", 5298 RTTimeMilliTS() - u64Start, rc2, iFailed)); 5280 rc = RTThreadWait(pData->aCts[i].AsyncIOThread, 30000 /* 30 s*/, NULL); 5281 AssertMsg(VBOX_SUCCESS(rc) || rc == VERR_INVALID_HANDLE, ("rc=%Rrc i=%d\n", rc, i)); 5282 } 5299 5283 } 5300 5284 else
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器