]> git.proxmox.com Git - mirror_ovs.git/commit
poll-loop: Simplify and speed up polling.
authorBen Pfaff <blp@nicira.com>
Tue, 16 Jul 2013 17:43:07 +0000 (10:43 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 16 Jul 2013 23:54:26 +0000 (16:54 -0700)
commit8f6c3ad72f4b80070db753095f20a54f27b97042
treec26b6466212f1a4339278e03bf7e51855e69c07f
parent529db6351a720e3525059370a7ebd2420582395f
poll-loop: Simplify and speed up polling.

The simplification comes from dropping support for canceling a
poll_waiter, which was a feature that was never used.  The speedup
comes from avoiding a malloc() for every call to poll_fd_wait().
(I doubt that this significantly improves performance.)

This prepares for making the polling structures per-thread in
the next commit.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/poll-loop.c
lib/poll-loop.h