Changeset 44487 in vbox for trunk/src/VBox/Runtime/include/internal
- Timestamp:
- Jan 31, 2013 12:37:42 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 83507
- Location:
- trunk/src/VBox/Runtime/include/internal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/include/internal/pipe.h
r44469 r44487 5 5 6 6 /* 7 * Copyright (C) 2010 Oracle Corporation7 * Copyright (C) 2010-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 29 29 30 30 #include <iprt/pipe.h> 31 /* Requires Windows.h on windows. */32 31 33 32 RT_C_DECLS_BEGIN … … 42 41 * @param phNative Where to put the primary handle. 43 42 */ 44 int rtPipePollGetHandle(RTPIPE hPipe, uint32_t fEvents, PRTHCINTPTR phNative);43 int rtPipePollGetHandle(RTPIPE hPipe, uint32_t fEvents, PRTHCINTPTR phNative); 45 44 46 #ifdef RT_OS_WINDOWS 45 /** 46 * Internal RTPoll helper that polls the pipe handle and, if @a fNoWait is 47 * clear, starts whatever actions we've got running during the poll call. 48 * 49 * @returns 0 if no pending events, actions initiated if @a fNoWait is clear. 50 * Event mask (in @a fEvents) and no actions if the handle is ready 51 * already. 52 * UINT32_MAX (asserted) if the pipe handle is busy in I/O or a 53 * different poll set. 54 * 55 * @param hPipe The pipe handle. 56 * @param hPollSet The poll set handle (for access checks). 57 * @param fEvents The events we're polling for. 58 * @param fFinalEntry Set if this is the final entry for this handle 59 * in this poll set. This can be used for dealing 60 * with duplicate entries. 61 * @param fNoWait Set if it's a zero-wait poll call. Clear if 62 * we'll wait for an event to occur. 63 */ 47 64 uint32_t rtPipePollStart(RTPIPE hPipe, RTPOLLSET hPollSet, uint32_t fEvents, bool fFinalEntry, bool fNoWait); 65 66 /** 67 * Called after a WaitForMultipleObjects returned in order to check for pending 68 * events and stop whatever actions that rtPipePollStart() initiated. 69 * 70 * @returns Event mask or 0. 71 * 72 * @param hPipe The pipe handle. 73 * @param fEvents The events we're polling for. 74 * @param fFinalEntry Set if this is the final entry for this handle 75 * in this poll set. This can be used for dealing 76 * with duplicate entries. Only keep in mind that 77 * this method is called in reverse order, so the 78 * first call will have this set (when the entire 79 * set was processed). 80 * @param fHarvestEvents Set if we should check for pending events. 81 */ 48 82 uint32_t rtPipePollDone(RTPIPE hPipe, uint32_t fEvents, bool fFinalEntry, bool fHarvestEvents); 49 #endif /* RT_OS_WINDOWS */50 83 51 84 RT_C_DECLS_END -
trunk/src/VBox/Runtime/include/internal/socket.h
r44469 r44487 63 63 64 64 int rtSocketPollGetHandle(RTSOCKET hSocket, uint32_t fEvents, PRTHCINTPTR phNative); 65 #ifdef RT_OS_WINDOWS66 65 uint32_t rtSocketPollStart(RTSOCKET hSocket, RTPOLLSET hPollSet, uint32_t fEvents, bool fFinalEntry, bool fNoWait); 67 66 uint32_t rtSocketPollDone(RTSOCKET hSocket, uint32_t fEvents, bool fFinalEntry, bool fHarvestEvents); 68 #endif /* RT_OS_WINDOWS */69 67 70 68 RT_C_DECLS_END
Note:
See TracChangeset
for help on using the changeset viewer.