Re: [ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2014-01-17 Thread Ben Pfaff
On Fri, Jan 17, 2014 at 03:55:17PM -0800, Ben Pfaff wrote: > On Fri, Jan 17, 2014 at 03:41:31PM -0800, Ben Pfaff wrote: > > On Thu, Jan 09, 2014 at 04:26:12PM -0800, Linda Sun wrote: > > > Use WaitForMultipleObjects for polling on windows. This works on all > > > kinds > > > of objects, e.g. soc

Re: [ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2014-01-17 Thread Ben Pfaff
On Fri, Jan 17, 2014 at 03:41:31PM -0800, Ben Pfaff wrote: > On Thu, Jan 09, 2014 at 04:26:12PM -0800, Linda Sun wrote: > > Use WaitForMultipleObjects for polling on windows. This works on all kinds > > of objects, e.g. sockets, files, especially ioctl calls to the kernel. > > poll_fd_wait_event

Re: [ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2014-01-17 Thread Ben Pfaff
On Thu, Jan 09, 2014 at 04:26:12PM -0800, Linda Sun wrote: > Use WaitForMultipleObjects for polling on windows. This works on all kinds > of objects, e.g. sockets, files, especially ioctl calls to the kernel. > poll_fd_wait_event() is used if events need to be passed to pollfds. > latch is signa

[ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2014-01-09 Thread Linda Sun
Use WaitForMultipleObjects for polling on windows. This works on all kinds of objects, e.g. sockets, files, especially ioctl calls to the kernel. poll_fd_wait_event() is used if events need to be passed to pollfds. latch is signaled with event, to be waited/polled by WaitForMultipleObjects() as

Re: [ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2014-01-07 Thread Linda Sun
Sorry it doesn't. My linux and my windows are on different repo. And I didn't copy the last change over. Linda - Original Message - From: "Ben Pfaff" To: "Linda Sun" Cc: dev@openvswitch.org Sent: Tuesday, January 7, 2014 2:51:58 PM Subject: Re: [ovs-d

Re: [ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2014-01-07 Thread Ben Pfaff
On Mon, Jan 06, 2014 at 02:47:33PM -0800, Linda Sun wrote: > Use WaitForMultipleObjects for polling on windows. This works on all kinds > of objects, e.g. sockets, files, especially ioctl calls to the kernel. > poll_fd_wait_event() is used if events need to be passed to pollfds. > latch is signa

Re: [ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2014-01-06 Thread Saurabh Shah
From: Linda Sun mailto:l...@vmware.com>> Date: Tuesday, January 7, 2014 3:27 AM To: Ben Pfaff mailto:b...@nicira.com>> Cc: "dev@openvswitch.org<mailto:dev@openvswitch.org>" mailto:dev@openvswitch.org>> Subject: Re: [ovs-dev] [PATCH] poll-loop: windows poll_bl

[ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2014-01-06 Thread Linda Sun
Use WaitForMultipleObjects for polling on windows. This works on all kinds of objects, e.g. sockets, files, especially ioctl calls to the kernel. poll_fd_wait_event() is used if events need to be passed to pollfds. latch is signaled with event, to be waited/polled by WaitForMultipleObjects() as

Re: [ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2014-01-06 Thread Linda Sun
- Original Message - From: "Ben Pfaff" To: "Linda Sun" Cc: dev@openvswitch.org Sent: Monday, December 30, 2013 10:33:13 AM Subject: Re: [ovs-dev] [PATCH] poll-loop: windows poll_block implementation I don't think that it's safe to do the operations that l

Re: [ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2013-12-30 Thread Ben Pfaff
On Wed, Dec 18, 2013 at 06:26:31PM -0800, Linda Sun wrote: > Use WaitForMultipleObjects for polling on windows. This works on all kinds > of objects, e.g. sockets, files, especially ioctl calls to the kernel. > poll_fd_wait_event() is used if events need to be passed to pollfds. > latch is signa

[ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2013-12-18 Thread Linda Sun
Use WaitForMultipleObjects for polling on windows. This works on all kinds of objects, e.g. sockets, files, especially ioctl calls to the kernel. poll_fd_wait_event() is used if events need to be passed to pollfds. latch is signaled with event, to be waited/polled by WaitForMultipleObjects() as

[ovs-dev] [PATCH] poll-loop: windows poll_block implementation

2013-12-18 Thread Linda Sun
Use WaitForMultipleObjects for polling on windows. This works on all kinds of objects, e.g. sockets, files, especially ioctl calls to the kernel. poll_fd_wait_event() is used if events need to be passed to pollfds. latch is signaled with event, to be waited/polled by WaitForMultipleObjects() as