VirtualBox

Ignore:
Timestamp:
Jan 31, 2013 12:37:42 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83507
Message:

IPRT: Poll on OS/2.

Location:
trunk/src/VBox/Runtime/include/internal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/pipe.h

    r44469 r44487  
    55
    66/*
    7  * Copyright (C) 2010 Oracle Corporation
     7 * Copyright (C) 2010-2013 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2929
    3030#include <iprt/pipe.h>
    31 /* Requires Windows.h on windows. */
    3231
    3332RT_C_DECLS_BEGIN
     
    4241 * @param   phNative            Where to put the primary handle.
    4342 */
    44 int rtPipePollGetHandle(RTPIPE hPipe, uint32_t fEvents, PRTHCINTPTR phNative);
     43int         rtPipePollGetHandle(RTPIPE hPipe, uint32_t fEvents, PRTHCINTPTR phNative);
    4544
    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 */
    4764uint32_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 */
    4882uint32_t    rtPipePollDone(RTPIPE hPipe, uint32_t fEvents, bool fFinalEntry, bool fHarvestEvents);
    49 #endif /* RT_OS_WINDOWS */
    5083
    5184RT_C_DECLS_END
  • trunk/src/VBox/Runtime/include/internal/socket.h

    r44469 r44487  
    6363
    6464int         rtSocketPollGetHandle(RTSOCKET hSocket, uint32_t fEvents, PRTHCINTPTR phNative);
    65 #ifdef RT_OS_WINDOWS
    6665uint32_t    rtSocketPollStart(RTSOCKET hSocket, RTPOLLSET hPollSet, uint32_t fEvents, bool fFinalEntry, bool fNoWait);
    6766uint32_t    rtSocketPollDone(RTSOCKET hSocket, uint32_t fEvents, bool fFinalEntry, bool fHarvestEvents);
    68 #endif /* RT_OS_WINDOWS */
    6967
    7068RT_C_DECLS_END
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