mirror of
https://github.com/openvswitch/ovs
synced 2025-10-27 15:18:06 +00:00
poll-loop: Port to Windows.
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 well. Changed array of fds to hmap to check for duplicate fds. Signed-off-by: Linda Sun <lsun@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -55,4 +55,8 @@ typedef uint32_t __bitwise__ __be32;
|
||||
typedef uint64_t __bitwise__ __be64;
|
||||
#endif /* no <linux/types.h> */
|
||||
|
||||
#ifndef _WIN32
|
||||
typedef __u32 HANDLE;
|
||||
#endif
|
||||
|
||||
#endif /* <linux/types.h> */
|
||||
|
||||
Reference in New Issue
Block a user