Clean up multi-thread barrier-sync hold-down timer 17/19117/5
authorDave Barach <dave@barachs.net>
Tue, 23 Apr 2019 14:07:24 +0000 (10:07 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 24 Apr 2019 15:17:58 +0000 (15:17 +0000)
commit9ae190e9d228bfc1358482d4f07da1f4cfd41c90
tree9e22b9797fbabd92f1b290fff0cc6b543a3d2bdb
parent502785b65c40351f62e510a245ccee56084a07f4
Clean up multi-thread barrier-sync hold-down timer

Main thread: don't bother with the barrier sync hold-down timer if
none of the worker threads are busy.

Worker threads: avoid epoll_pwait (10ms timeout) when the
control-plane has been active in the last half-second.

Change-Id: I82008d09968c65e2a4af0ebb7887389992e60603
Signed-off-by: Dave Barach <dave@barachs.net>
src/vlib/threads.c
src/vlib/unix/input.c