Clean up multi-thread barrier-sync hold-down timer 00/19300/1
authorDave Barach <dave@barachs.net>
Tue, 23 Apr 2019 14:07:24 +0000 (10:07 -0400)
committerDave Barach <openvpp@barachs.net>
Wed, 1 May 2019 23:51:20 +0000 (23:51 +0000)
commit79ad20fc043d74b8812824d0862292bc83e9b09a
treee97ed7a7a8c4b8bcb26f394bd78af63e04f87abe
parent7cbf2d154acc53609afdc76a8bef1c4023fe274a
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>
(cherry picked from commit 9ae190e9d228bfc1358482d4f07da1f4cfd41c90)
src/vlib/threads.c
src/vlib/unix/input.c