VirtualBox

vbox的更動 44472 路徑 trunk/src/VBox/Runtime/r3/posix


忽略:
時間撮記:
2013-1-30 下午03:55:32 (12 年 以前)
作者:
vboxsync
訊息:

IPRT: Merging poll-win.cpp and poll-posix.cpp, part 2.

位置:
trunk/src/VBox/Runtime/r3/posix
檔案:
刪除 1 筆資料
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/r3/posix/pipe-posix.cpp

    r40102 r44472  
    3636#include <iprt/err.h>
    3737#include <iprt/mem.h>
     38#include <iprt/poll.h>
    3839#include <iprt/string.h>
    3940#include <iprt/thread.h>
     
    5556#endif
    5657
     58#include "internal/pipe.h"
     59
    5760
    5861/*******************************************************************************
     
    668671}
    669672
     673
     674int rtPipePollGetHandle(RTPIPE hPipe, uint32_t fEvents, PRTHCINTPTR phNative)
     675{
     676    RTPIPEINTERNAL *pThis = hPipe;
     677    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
     678    AssertReturn(pThis->u32Magic == RTPIPE_MAGIC, VERR_INVALID_HANDLE);
     679
     680    AssertReturn(!(fEvents & RTPOLL_EVT_READ)  || pThis->fRead,  VERR_INVALID_PARAMETER);
     681    AssertReturn(!(fEvents & RTPOLL_EVT_WRITE) || !pThis->fRead, VERR_INVALID_PARAMETER);
     682
     683    *phNative = pThis->fd;
     684    return VINF_SUCCESS;
     685}
     686
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette