Changeset 26827 in vbox
- Timestamp:
- Feb 26, 2010 10:59:04 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/poll.h
r26801 r26827 181 181 * @param hPollSet The poll set. 182 182 */ 183 RTDECL(uint32_t) RTPoll SetCount(RTPOLLSET hPollSet);183 RTDECL(uint32_t) RTPollGetCount(RTPOLLSET hPollSet); 184 184 185 185 /** -
trunk/src/VBox/Runtime/r3/os2/poll-os2.cpp
r26788 r26827 83 83 84 84 85 RTDECL(uint32_t) RTPoll SetCount(RTPOLLSET hPollSet)85 RTDECL(uint32_t) RTPollGetCount(RTPOLLSET hPollSet) 86 86 { 87 87 return UINT32_MAX; -
trunk/src/VBox/Runtime/r3/posix/poll-posix.cpp
r26824 r26827 464 464 465 465 466 RTDECL(uint32_t) RTPoll SetCount(RTPOLLSET hPollSet)466 RTDECL(uint32_t) RTPollGetCount(RTPOLLSET hPollSet) 467 467 { 468 468 /* -
trunk/src/VBox/Runtime/r3/win/poll-win.cpp
r26788 r26827 83 83 84 84 85 RTDECL(uint32_t) RTPoll SetCount(RTPOLLSET hPollSet)85 RTDECL(uint32_t) RTPollGetCount(RTPOLLSET hPollSet) 86 86 { 87 87 return UINT32_MAX; -
trunk/src/VBox/Runtime/testcase/tstRTPoll.cpp
r26824 r26827 59 59 RTTESTI_CHECK_RC(RTPollSetRemove(hSetInvl, 1), VERR_INVALID_HANDLE); 60 60 RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSetInvl, 1, NULL), VERR_INVALID_HANDLE); 61 RTTESTI_CHECK(RTPoll SetCount(hSetInvl) == UINT32_MAX);61 RTTESTI_CHECK(RTPollGetCount(hSetInvl) == UINT32_MAX); 62 62 RTTESTI_CHECK_RC(RTPoll(hSetInvl, 0, NULL, NULL), VERR_INVALID_HANDLE); 63 63 RTTESTI_CHECK_RC(RTPollNoResume(hSetInvl, 0, NULL, NULL), VERR_INVALID_HANDLE); … … 125 125 RTTESTI_CHECK_RETV(hSet != NIL_RTPOLLSET); 126 126 127 RTTESTI_CHECK_RETV(RTPoll SetCount(hSet) == 0);127 RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 0); 128 128 RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 0, NULL), VERR_POLL_HANDLE_ID_NOT_FOUND); 129 129 130 130 RTTESTI_CHECK_RC(RTPollSetAddPipe(hSet, NIL_RTPIPE, RTPOLL_EVT_READ, 1 /*id*/), VINF_SUCCESS); 131 RTTESTI_CHECK_RETV(RTPoll SetCount(hSet) == 0);131 RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 0); 132 132 RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 1 /*id*/, NULL), VERR_POLL_HANDLE_ID_NOT_FOUND); 133 133 RTTESTI_CHECK_RC(RTPollSetRemove(hSet, 0), VERR_POLL_HANDLE_ID_NOT_FOUND); 134 RTTESTI_CHECK_RETV(RTPoll SetCount(hSet) == 0);134 RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 0); 135 135 136 136 RTTESTI_CHECK_RC(RTPollSetDestroy(hSet), VINF_SUCCESS); … … 149 149 /* add the read pipe */ 150 150 RTTESTI_CHECK_RC_RETV(RTPollSetAddPipe(hSet, hPipeR, RTPOLL_EVT_READ, 1 /*id*/), VINF_SUCCESS); 151 RTTESTI_CHECK_RETV(RTPoll SetCount(hSet) == 1);151 RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 1); 152 152 RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 1 /*id*/, NULL), VINF_SUCCESS); 153 153 RTHANDLE Handle; … … 162 162 /* add the write pipe */ 163 163 RTTESTI_CHECK_RC(RTPollSetAddPipe(hSet, hPipeW, RTPOLL_EVT_WRITE, 10 /*id*/), VINF_SUCCESS); 164 RTTESTI_CHECK_RETV(RTPoll SetCount(hSet) == 2);164 RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 2); 165 165 RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 10 /*id*/, NULL), VINF_SUCCESS); 166 166 … … 276 276 /* Remove the read pipe, do a quick poll check. */ 277 277 RTTESTI_CHECK_RC_RETV(RTPollSetRemove(hSet, 1), VINF_SUCCESS); 278 RTTESTI_CHECK_RETV(RTPoll SetCount(hSet) == 1);278 RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 1); 279 279 RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 1 /*id*/, NULL), VERR_POLL_HANDLE_ID_NOT_FOUND); 280 280 RTTESTI_CHECK_RC_RETV(RTPollSetQueryHandle(hSet, 10 /*id*/, &Handle), VINF_SUCCESS); … … 289 289 290 290 RTTESTI_CHECK_RC_RETV(RTPollSetAddPipe(hSet, hPipeR, RTPOLL_EVT_READ, 1 /*id*/), VINF_SUCCESS); 291 RTTESTI_CHECK_RETV(RTPoll SetCount(hSet) == 2);291 RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 2); 292 292 RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 1 /*id*/, NULL), VINF_SUCCESS); 293 293 … … 308 308 /* Remove it again and break the pipe by closing the read end. */ 309 309 RTTESTI_CHECK_RC_RETV(RTPollSetRemove(hSet, 1), VINF_SUCCESS); 310 RTTESTI_CHECK_RETV(RTPoll SetCount(hSet) == 1);310 RTTESTI_CHECK_RETV(RTPollGetCount(hSet) == 1); 311 311 RTTESTI_CHECK_RC(RTPollSetQueryHandle(hSet, 1 /*id*/, NULL), VERR_POLL_HANDLE_ID_NOT_FOUND); 312 312 RTTESTI_CHECK_RC_RETV(RTPollSetQueryHandle(hSet, 10 /*id*/, &Handle), VINF_SUCCESS);
Note:
See TracChangeset
for help on using the changeset viewer.