]> git.proxmox.com Git - mirror_ovs.git/commit - lib/stopwatch.c
stopwatch: Add latch_poll to stopwatch loop.
authorMark Michelson <mmichels@redhat.com>
Wed, 11 Apr 2018 14:15:22 +0000 (09:15 -0500)
committerBen Pfaff <blp@ovn.org>
Fri, 13 Apr 2018 17:57:02 +0000 (10:57 -0700)
commit0f3d9fb4853199d66caa1a32ee16a7e5a36d8a84
tree7bd171d5b2a07c3559266f21a5f215d33e60fa9d
parent99cc5c921d4740da21b9de1f55077ec03f33f8d7
stopwatch: Add latch_poll to stopwatch loop.

Nothing was clearing the latch, so the loop was busy. This makes it so
the loop only runs on new calls to latch_set() by a separate thread.

Signed-off-by: Mark Michelson <mmichels@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/stopwatch.c