Changeset 26731 in vbox
- Timestamp:
- Feb 24, 2010 11:14:21 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/poll.h
r26721 r26731 59 59 * @param cMillies Number of milliseconds to wait. Use 60 60 * RT_INDEFINITE_WAIT to wait for ever. 61 * @param pHandle Where to return the info about the handle.62 61 * @param pfEvent Where to return details about the events that 63 * occured. 62 * occured. Optional. 63 * @param pid Where to return the ID associated with the handle 64 * when calling RTPollSetAdd. Optional. 64 65 */ 65 RTDECL(int) RTPoll(RTPIPE hPipe, RTMSINTERVAL cMillies, uint32_t *pfEvent );66 RTDECL(int) RTPoll(RTPIPE hPipe, RTMSINTERVAL cMillies, uint32_t *pfEvent, uint32_t *pid); 66 67 67 68 /** 68 * Creates a poll set with zero or more initialmembers.69 * Creates a poll set with no members. 69 70 * 70 71 * @returns IPRT status code. 71 72 * @param phPollSet Where to return the poll set handle. 72 * @param cHandles The number of initial members.73 * @param paHandles Array with the initial members.74 * @param pafEvents Which events to poll for. This is an array running75 * parallel to @a paHandles. If NULL, we assume76 * RTPOLL_EVT_READ and RTPOLL_EVT_ERROR.77 73 */ 78 RTDECL(int) RTPollSetCreate(PRTPOLLSET hPollSet , size_t cHandles, PCRTHANDLE paHandles, uint32_t const *pafEvents);74 RTDECL(int) RTPollSetCreate(PRTPOLLSET hPollSet); 79 75 80 76 /** … … 94 90 * @param pHandle The handle to add. 95 91 * @param fEvents Which events to poll for. 92 * @param id The handle ID. 96 93 */ 97 RTDECL(int) RTPollSetAdd(RTPOLLSET hPollSet, PCRTHANDLE pHandle, uint32_t fEvents );94 RTDECL(int) RTPollSetAdd(RTPOLLSET hPollSet, PCRTHANDLE pHandle, uint32_t fEvents, uint32_t id); 98 95 99 96 /** … … 102 99 * @returns IPRT status code 103 100 * @param hPollSet The poll set to modify. 104 * @param pHandle The handle to remove.101 * @param id The handle ID of the handle that should be removed. 105 102 */ 106 RTDECL(int) RTPollSetRemove(RTPOLLSET hPollSet, PCRTHANDLE pHandle);103 RTDECL(int) RTPollSetRemove(RTPOLLSET hPollSet, uint32_t id); 107 104 108 105 /** … … 113 110 * @param hPipe The pipe handle. 114 111 * @param fEvents Which events to poll for. 112 * @param id The handle ID. 115 113 * 116 114 * @todo Maybe we could figure out what to poll for depending on the kind of 117 115 * pipe we're dealing with. 118 116 */ 119 DECLINLINE(int) RTPollSetAddPipe(RTPOLLSET hPollSet, RTPIPE hPipe, uint32_t fEvents )117 DECLINLINE(int) RTPollSetAddPipe(RTPOLLSET hPollSet, RTPIPE hPipe, uint32_t fEvents, uint32_t id) 120 118 { 121 119 RTHANDLE Handle; 122 120 Handle.enmType = RTHANDLETYPE_PIPE; 123 121 Handle.u.hPipe = hPipe; 124 return RTPollSetAdd(hPollSet, &Handle, fEvents );122 return RTPollSetAdd(hPollSet, &Handle, fEvents, id); 125 123 } 126 124 … … 132 130 * @param hSocket The socket handle. 133 131 * @param fEvents Which events to poll for. 132 * @param id The handle ID. 134 133 */ 135 DECLINLINE(int) RTPollSetAddSocket(RTPOLLSET hPollSet, RTSOCKET hSocket, uint32_t fEvents )134 DECLINLINE(int) RTPollSetAddSocket(RTPOLLSET hPollSet, RTSOCKET hSocket, uint32_t fEvents, uint32_t id) 136 135 { 137 136 RTHANDLE Handle; 138 137 Handle.enmType = RTHANDLETYPE_SOCKET; 139 138 Handle.u.hSocket = hSocket; 140 return RTPollSetAdd(hPollSet, &Handle, fEvents );139 return RTPollSetAdd(hPollSet, &Handle, fEvents, id); 141 140 } 142 141
Note:
See TracChangeset
for help on using the changeset viewer.