Re: [ovs-dev] [PATCH v3 1/3] poll-loop: Make poll_fd_wait_event() cross-platform.

2014-02-11 Thread Gurucharan Shetty
On Tue, Feb 11, 2014 at 8:07 AM, Ben Pfaff wrote: > On Mon, Feb 10, 2014 at 03:25:36PM -0800, Gurucharan Shetty wrote: >> This is helpful if we want to wait either on 'fd' for POSIX or >> events for Windows. >> >> For Windows, if both 'fd' and 'wevent' is specified, we associate >> that event with

Re: [ovs-dev] [PATCH v3 1/3] poll-loop: Make poll_fd_wait_event() cross-platform.

2014-02-11 Thread Ben Pfaff
On Mon, Feb 10, 2014 at 03:25:36PM -0800, Gurucharan Shetty wrote: > This is helpful if we want to wait either on 'fd' for POSIX or > events for Windows. > > For Windows, if both 'fd' and 'wevent' is specified, we associate > that event with the 'fd' using WSAEventSelect() in poll_block(). > So an

[ovs-dev] [PATCH v3 1/3] poll-loop: Make poll_fd_wait_event() cross-platform.

2014-02-10 Thread Gurucharan Shetty
This is helpful if we want to wait either on 'fd' for POSIX or events for Windows. For Windows, if both 'fd' and 'wevent' is specified, we associate that event with the 'fd' using WSAEventSelect() in poll_block(). So any 'events' on that 'fd' will wake us up from WaitForMultipleObjects(). WSAEven