Changeset 39498 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Dec 1, 2011 7:59:21 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 75169
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r39471 r39498 622 622 QSOCKET_LOCK_CREATE(tcb); 623 623 QSOCKET_LOCK_CREATE(udb); 624 rc = RTReq CreateQueue(&pData->pReqQueue);624 rc = RTReqQueueCreate(&pData->pReqQueue); 625 625 AssertReleaseRC(rc); 626 626 #endif … … 1950 1950 void slirp_process_queue(PNATState pData) 1951 1951 { 1952 RTReq Process(pData->pReqQueue, RT_INDEFINITE_WAIT);1952 RTReqQueueProcess(pData->pReqQueue, RT_INDEFINITE_WAIT); 1953 1953 } 1954 1954 void *slirp_get_queue(PNATState pData) -
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r39287 r39498 136 136 int soMaxConn; 137 137 #ifdef VBOX_WITH_SLIRP_MT 138 PRTREQQUEUE pReqQueue;138 RTREQQUEUE hReqQueue; 139 139 #endif 140 140 #ifdef RT_OS_WINDOWS … … 474 474 PRTREQ pReq; \ 475 475 int rc; \ 476 rc = RTReq CallVoid((data)->pReqQueue, &pReq, 0 /*cMillies*/,\477 (PFNRT)tcp_output 2, data, sotcb);\476 rc = RTReqQueueCallVoid((data)->hReqQueue, &pReq, 0 /*cMillies*/, \ 477 (PFNRT)tcp_output 2, data, sotcb); \ 478 478 if (RT_LIKELY(rc == VERR_TIMEOUT)) \ 479 479 { \ … … 491 491 do { \ 492 492 int rc; \ 493 rc = RTReq CallEx((data)->pReqQueue, NULL, 0 /*cMillies*/,\494 RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT,\495 (PFNRT)tcp_input, 4, data, mbuf, size, so);\493 rc = RTReqQueueCallEx((data)->hReqQueue, NULL, 0 /*cMillies*/, \ 494 RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, \ 495 (PFNRT)tcp_input, 4, data, mbuf, size, so); \ 496 496 AssertReleaseRC(rc); \ 497 497 } while(0) … … 501 501 PRTREQ pReq; \ 502 502 int rc; \ 503 rc = RTReq CallVoid((data)->pReqQueue, &pReq, 0 /*cMillies*/,\504 (PFNRT)tcp_connect, 2, data, so);\503 rc = RTReqQueueCallVoid((data)->hReqQueue, &pReq, 0 /*cMillies*/, \ 504 (PFNRT)tcp_connect, 2, data, so); \ 505 505 if (RT_LIKELY(rc == VERR_TIMEOUT)) \ 506 506 { \ … … 519 519 PRTREQ pReq; \ 520 520 int rc; \ 521 rc = RTReq CallVoid((data)->pReqQueue, &pReq, 0 /*cMillies*/,\522 (PFNRT)soread_queue, 4,\523 data, so, ifclose, &(ret));\521 rc = RTReqQueueCallVoid((data)->hReqQueue, &pReq, 0 /*cMillies*/, \ 522 (PFNRT)soread_queue, 4, \ 523 data, so, ifclose, &(ret)); \ 524 524 if (RT_LIKELY(rc == VERR_TIMEOUT)) \ 525 525 { \ … … 538 538 PRTREQ pReq; \ 539 539 int rc; \ 540 rc = RTReq Call((data)->pReqQueue, &pReq, 0 /*cMillies*/,\541 (PFNRT)sowrite, 2, data, so);\540 rc = RTReqQueueCall((data)->hReqQueue, &pReq, 0 /*cMillies*/, \ 541 (PFNRT)sowrite, 2, data, so); \ 542 542 if (RT_LIKELY(rc == VERR_TIMEOUT)) \ 543 543 { \ … … 556 556 PRTREQ pReq; \ 557 557 int rc; \ 558 rc = RTReq CallVoid((data)->pReqQueue, &pReq, 0 /*cMillies */,\559 (PFNRT)sorecvfrom, 2, data, so);\558 rc = RTReqQueueCallVoid((data)->hReqQueue, &pReq, 0 /*cMillies */, \ 559 (PFNRT)sorecvfrom, 2, data, so); \ 560 560 if (RT_LIKELY(rc == VERR_TIMEOUT)) \ 561 561 { \ … … 574 574 PRTREQ pReq; \ 575 575 int rc; \ 576 rc = RTReq CallVoid((data)->pReqQueue, &pReq, 0 /* cMillies*/,\577 (PFNRT)udp_detach, 2, data, so);\576 rc = RTReqQueueCallVoid((data)->hReqQueue, &pReq, 0 /* cMillies*/, \ 577 (PFNRT)udp_detach, 2, data, so); \ 578 578 if (RT_LIKELY(rc == VERR_TIMEOUT)) \ 579 579 { \
Note:
See TracChangeset
for help on using the changeset viewer.