VirtualBox

Ignore:
Timestamp:
Dec 1, 2011 7:59:21 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75169
Message:

RTReq refactoring.

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r39471 r39498  
    622622    QSOCKET_LOCK_CREATE(tcb);
    623623    QSOCKET_LOCK_CREATE(udb);
    624     rc = RTReqCreateQueue(&pData->pReqQueue);
     624    rc = RTReqQueueCreate(&pData->pReqQueue);
    625625    AssertReleaseRC(rc);
    626626#endif
     
    19501950void slirp_process_queue(PNATState pData)
    19511951{
    1952      RTReqProcess(pData->pReqQueue, RT_INDEFINITE_WAIT);
     1952     RTReqQueueProcess(pData->pReqQueue, RT_INDEFINITE_WAIT);
    19531953}
    19541954void *slirp_get_queue(PNATState pData)
  • trunk/src/VBox/Devices/Network/slirp/slirp_state.h

    r39287 r39498  
    136136    int soMaxConn;
    137137#ifdef VBOX_WITH_SLIRP_MT
    138     PRTREQQUEUE pReqQueue;
     138    RTREQQUEUE hReqQueue;
    139139#endif
    140140#ifdef RT_OS_WINDOWS
     
    474474        PRTREQ pReq;                                                    \
    475475        int rc;                                                         \
    476         rc = RTReqCallVoid((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);      \
    478478        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    479479        {                                                               \
     
    491491    do {                                                                \
    492492        int rc;                                                         \
    493         rc = RTReqCallEx((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); \
    496496        AssertReleaseRC(rc);                                            \
    497497    } while(0)
     
    501501        PRTREQ pReq;                                                    \
    502502        int rc;                                                         \
    503         rc = RTReqCallVoid((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);       \
    505505        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    506506        {                                                               \
     
    519519        PRTREQ pReq;                                                    \
    520520        int rc;                                                         \
    521         rc = RTReqCallVoid((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));             \
    524524        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    525525        {                                                               \
     
    538538        PRTREQ pReq;                                                    \
    539539        int rc;                                                         \
    540         rc = RTReqCall((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);               \
    542542        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    543543        {                                                               \
     
    556556        PRTREQ pReq;                                                    \
    557557        int rc;                                                         \
    558         rc = RTReqCallVoid((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);        \
    560560        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    561561        {                                                               \
     
    574574        PRTREQ pReq;                                                    \
    575575        int rc;                                                         \
    576         rc = RTReqCallVoid((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);        \
    578578        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    579579        {                                                               \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette