vbox的更動 54723 路徑 trunk/src/VBox/NetworkServices
- 時間撮記:
- 2015-3-11 下午06:26:48 (10 年 以前)
- 位置:
- trunk/src/VBox/NetworkServices/NetLib
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/NetworkServices/NetLib/VBoxNetBaseService.cpp
r54722 r54723 463 463 if (m->m_hThrRecv != NIL_RTTHREAD) 464 464 { 465 int rc = m->m_EventQ->interruptEventQueueProcessing(); 465 int rc = abortWait(); 466 AssertRC(rc); 467 rc = m->m_EventQ->interruptEventQueueProcessing(); 466 468 if (RT_SUCCESS(rc)) 467 469 { … … 494 496 int VBoxNetBaseService::waitForIntNetEvent(int cMillis) 495 497 { 496 int rc = VINF_SUCCESS;497 498 INTNETIFWAITREQ WaitReq; 498 499 LogFlowFunc(("ENTER:cMillis: %d\n", cMillis)); … … 503 504 WaitReq.cMillies = cMillis; 504 505 505 rc = SUPR3CallVMMR0Ex(NIL_RTR0PTR, NIL_VMCPUID, VMMR0_DO_INTNET_IF_WAIT, 0, &WaitReq.Hdr);506 int rc = SUPR3CallVMMR0Ex(NIL_RTR0PTR, NIL_VMCPUID, VMMR0_DO_INTNET_IF_WAIT, 0, &WaitReq.Hdr); 506 507 LogFlowFuncLeaveRC(rc); 507 508 return rc; 508 509 } 510 511 512 int VBoxNetBaseService::abortWait() 513 { 514 INTNETIFABORTWAITREQ AbortReq; 515 LogFlowFunc(("ENTER:\n")); 516 AbortReq.Hdr.u32Magic = SUPVMMR0REQHDR_MAGIC; 517 AbortReq.Hdr.cbReq = sizeof(AbortReq); 518 AbortReq.pSession = m->m_pSession; 519 AbortReq.hIf = m->m_hIf; 520 AbortReq.fNoMoreWaits = true; 521 522 int rc = SUPR3CallVMMR0Ex(NIL_RTR0PTR, NIL_VMCPUID, VMMR0_DO_INTNET_IF_ABORT_WAIT, 0, &AbortReq.Hdr); 523 LogFlowFuncLeaveRC(rc); 524 return rc; 525 } 526 509 527 510 528 /* S/G API */ … … 538 556 void VBoxNetBaseService::flushWire() 539 557 { 540 int rc = VINF_SUCCESS;541 558 INTNETIFSENDREQ SendReq; 542 559 SendReq.Hdr.u32Magic = SUPVMMR0REQHDR_MAGIC; … … 544 561 SendReq.pSession = m->m_pSession; 545 562 SendReq.hIf = m->m_hIf; 546 rc = SUPR3CallVMMR0Ex(NIL_RTR0PTR, NIL_VMCPUID, VMMR0_DO_INTNET_IF_SEND, 0, &SendReq.Hdr);563 int rc = SUPR3CallVMMR0Ex(NIL_RTR0PTR, NIL_VMCPUID, VMMR0_DO_INTNET_IF_SEND, 0, &SendReq.Hdr); 547 564 AssertRCReturnVoid(rc); 548 565 LogFlowFuncLeave(); -
trunk/src/VBox/NetworkServices/NetLib/VBoxNetBaseService.h
r54700 r54723 69 69 int syncLeave(); 70 70 int waitForIntNetEvent(int cMillis); 71 int abortWait(); 71 72 int sendBufferOnWire(PCINTNETSEG pSg, int cSg, size_t cbBuffer); 72 73 void flushWire();
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器