[ovs-dev] [PATCH] Use WaitForMultipleObjects for polling on windows. This works on all kinds of objects, e.g. sockets, files, especially ioctl calls to the kernel. One additional paramater is passed down in poll_fd_wait() to help WaitForMultipleObjects. latch is signaled with event, to be waited/polled by WaitForMultipleObjects() as well.
Linda Sun
lsun at vmware.com
Sat Dec 7 18:43:44 UTC 2013
Since all we do is to be waken up to go back to the main loop I can sort the fds and or the events for the duplicates. Does that sound ok?
I used null events for the cases not used by windows. So it's currently not added to the array. I can always create event so no chance to pass a null event to poll loop.
Linda
Sent from my iPad
> On Dec 7, 2013, at 8:53 AM, Ben Pfaff <blp at nicira.com> wrote:
>
>> On Fri, Dec 06, 2013 at 04:41:52PM -0800, Linda Sun wrote:
>> Can you elaborate which cases have duplicate fds?
>
> It seems pretty likely for vconn-stream, since waiting to receive data
> and waiting for space to become available in the send buffer are
> independent.
>
>> I've already used closesocket instead of close handle for
>> sockets. I'll send a separate patch with the stream related
>> changes. E.g. Replace read/write on socket with send/recv.
>
> OK
More information about the dev
mailing list