VirtualBox

Changeset 26844 in vbox for trunk/src


Ignore:
Timestamp:
Feb 26, 2010 1:03:11 PM (15 years ago)
Author:
vboxsync
Message:

RTPollSetCount.

Location:
trunk/src/VBox/Runtime
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/os2/poll-os2.cpp

    r26827 r26844  
    8383
    8484
    85 RTDECL(uint32_t) RTPollGetCount(RTPOLLSET hPollSet)
     85RTDECL(uint32_t) RTPollSetCount(RTPOLLSET hPollSet)
    8686{
    8787    return UINT32_MAX;
  • trunk/src/VBox/Runtime/r3/posix/poll-posix.cpp

    r26827 r26844  
    464464
    465465
    466 RTDECL(uint32_t) RTPollGetCount(RTPOLLSET hPollSet)
     466RTDECL(uint32_t) RTPollSetCount(RTPOLLSET hPollSet)
    467467{
    468468    /*
  • trunk/src/VBox/Runtime/r3/win/poll-win.cpp

    r26827 r26844  
    8383
    8484
    85 RTDECL(uint32_t) RTPollGetCount(RTPOLLSET hPollSet)
     85RTDECL(uint32_t) RTPollSetCount(RTPOLLSET hPollSet)
    8686{
    8787    return UINT32_MAX;
  • trunk/src/VBox/Runtime/testcase/tstRTPoll.cpp

    r26827 r26844  
    5959    RTTESTI_CHECK_RC(RTPollSetRemove(hSetInvl, 1), VERR_INVALID_HANDLE);
    6060    RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSetInvl, 1, NULL), VERR_INVALID_HANDLE);
    61     RTTESTI_CHECK(RTPollGetCount(hSetInvl) == UINT32_MAX);
     61    RTTESTI_CHECK(RTPollSetCount(hSetInvl) == UINT32_MAX);
    6262    RTTESTI_CHECK_RC(RTPoll(hSetInvl, 0, NULL, NULL),  VERR_INVALID_HANDLE);
    6363    RTTESTI_CHECK_RC(RTPollNoResume(hSetInvl, 0, NULL, NULL),  VERR_INVALID_HANDLE);
     
    125125    RTTESTI_CHECK_RETV(hSet != NIL_RTPOLLSET);
    126126
    127     RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 0);
     127    RTTESTI_CHECK_RETV(RTPollSetCount(hSet) == 0);
    128128    RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 0, NULL), VERR_POLL_HANDLE_ID_NOT_FOUND);
    129129
    130130    RTTESTI_CHECK_RC(RTPollSetAddPipe(hSet, NIL_RTPIPE, RTPOLL_EVT_READ, 1 /*id*/), VINF_SUCCESS);
    131     RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 0);
     131    RTTESTI_CHECK_RETV(RTPollSetCount(hSet) == 0);
    132132    RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 1 /*id*/, NULL), VERR_POLL_HANDLE_ID_NOT_FOUND);
    133133    RTTESTI_CHECK_RC(RTPollSetRemove(hSet, 0), VERR_POLL_HANDLE_ID_NOT_FOUND);
    134     RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 0);
     134    RTTESTI_CHECK_RETV(RTPollSetCount(hSet) == 0);
    135135
    136136    RTTESTI_CHECK_RC(RTPollSetDestroy(hSet), VINF_SUCCESS);
     
    149149    /* add the read pipe */
    150150    RTTESTI_CHECK_RC_RETV(RTPollSetAddPipe(hSet, hPipeR, RTPOLL_EVT_READ, 1 /*id*/), VINF_SUCCESS);
    151     RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 1);
     151    RTTESTI_CHECK_RETV(RTPollSetCount(hSet) == 1);
    152152    RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 1 /*id*/, NULL), VINF_SUCCESS);
    153153    RTHANDLE Handle;
     
    162162    /* add the write pipe */
    163163    RTTESTI_CHECK_RC(RTPollSetAddPipe(hSet, hPipeW, RTPOLL_EVT_WRITE, 10 /*id*/), VINF_SUCCESS);
    164     RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 2);
     164    RTTESTI_CHECK_RETV(RTPollSetCount(hSet) == 2);
    165165    RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 10 /*id*/, NULL), VINF_SUCCESS);
    166166
     
    276276    /* Remove the read pipe, do a quick poll check. */
    277277    RTTESTI_CHECK_RC_RETV(RTPollSetRemove(hSet, 1), VINF_SUCCESS);
    278     RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 1);
     278    RTTESTI_CHECK_RETV(RTPollSetCount(hSet) == 1);
    279279    RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 1 /*id*/, NULL), VERR_POLL_HANDLE_ID_NOT_FOUND);
    280280    RTTESTI_CHECK_RC_RETV(RTPollSetQueryHandle(hSet, 10 /*id*/, &Handle), VINF_SUCCESS);
     
    289289
    290290    RTTESTI_CHECK_RC_RETV(RTPollSetAddPipe(hSet, hPipeR, RTPOLL_EVT_READ, 1 /*id*/), VINF_SUCCESS);
    291     RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 2);
     291    RTTESTI_CHECK_RETV(RTPollSetCount(hSet) == 2);
    292292    RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 1 /*id*/, NULL), VINF_SUCCESS);
    293293
     
    308308    /* Remove it again and break the pipe by closing the read end. */
    309309    RTTESTI_CHECK_RC_RETV(RTPollSetRemove(hSet, 1), VINF_SUCCESS);
    310     RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 1);
     310    RTTESTI_CHECK_RETV(RTPollSetCount(hSet) == 1);
    311311    RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 1 /*id*/, NULL), VERR_POLL_HANDLE_ID_NOT_FOUND);
    312312    RTTESTI_CHECK_RC_RETV(RTPollSetQueryHandle(hSet, 10 /*id*/, &Handle), VINF_SUCCESS);
Note: See TracChangeset for help on using the changeset viewer.

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