VirtualBox

Changeset 31453 in vbox for trunk/include


Ignore:
Timestamp:
Aug 8, 2010 1:30:35 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64526
Message:

Runtime/poll: Add a method to change the events to poll for without removing and adding the source again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/poll.h

    r28800 r31453  
    5656 * @retval  VINF_SUCCESS if an event occured on a handle.  Note that these
    5757 * @retval  VERR_INVALID_HANDLE if @a hPollSet is invalid.
    58  * @retval  VERR_WRONG_ORDER if another thread is already accessing the set. The
     58 * @retval  VERR_CONCURRENT_ACCESS if another thread is already accessing the set. The
    5959 *          user is responsible for ensuring single threaded access.
    6060 * @retval  VERR_TIMEOUT if @a cMillies ellapsed without any events.
     
    8282 * @retval  VINF_SUCCESS if an event occured on a handle.  Note that these
    8383 * @retval  VERR_INVALID_HANDLE if @a hPollSet is invalid.
    84  * @retval  VERR_WRONG_ORDER if another thread is already accessing the set. The
     84 * @retval  VERR_CONCURRENT_ACCESS if another thread is already accessing the set. The
    8585 *          user is responsible for ensuring single threaded access.
    8686 * @retval  VERR_TIMEOUT if @a cMillies ellapsed without any events.
     
    121121 *
    122122 * @returns IPRT status code
    123  * @retval  VERR_WRONG_ORDER if another thread is already accessing the set. The
     123 * @retval  VERR_CONCURRENT_ACCESS if another thread is already accessing the set. The
    124124 *          user is responsible for ensuring single threaded access.
    125125 * @retval  VERR_POLL_HANDLE_NOT_POLLABLE if the specified handle is not
     
    141141 * @returns IPRT status code
    142142 * @retval  VERR_INVALID_HANDLE if @a hPollSet not valid.
    143  * @retval  VERR_WRONG_ORDER if another thread is already accessing the set. The
     143 * @retval  VERR_CONCURRENT_ACCESS if another thread is already accessing the set. The
    144144 *          user is responsible for ensuring single threaded access.
    145145 * @retval  VERR_POLL_HANDLE_ID_NOT_FOUND if @a id doesn't resolve to a valid
     
    159159 * @retval  VINF_SUCCESS if the handle was found.  @a *pHandle is set.
    160160 * @retval  VERR_INVALID_HANDLE if @a hPollSet is invalid.
    161  * @retval  VERR_WRONG_ORDER if another thread is already accessing the set. The
     161 * @retval  VERR_CONCURRENT_ACCESS if another thread is already accessing the set. The
    162162 *          user is responsible for ensuring single threaded access.
    163163 * @retval  VERR_POLL_HANDLE_ID_NOT_FOUND if there is no handle with that ID.
     
    178178 */
    179179RTDECL(uint32_t) RTPollSetGetCount(RTPOLLSET hPollSet);
     180
     181/**
     182 * Modifies the events to poll for for the given id.
     183 *
     184 * @returns IPRT status code.
     185 * @retval  VERR_INVALID_HANDLE if @a hPollSet not valid.
     186 * @retval  VERR_CONCURRENT_ACCESS if another thread is already accessing the set. The
     187 *          user is responsible for ensuring single threaded access.
     188 * @retval  VERR_POLL_HANDLE_ID_NOT_FOUND if @a id doesn't resolve to a valid
     189 *          handle.
     190 *
     191 * @param   hPollSet            The poll set to modify.
     192 * @param   id                  The handle ID to change the events for.
     193 * @param   fEvents             Which events to poll for.
     194 */
     195RTDECL(int) RTPollSetEventsChange(RTPOLLSET hPollSet, uint32_t id, uint32_t fEvents);
    180196
    181197/**
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