]> git.proxmox.com Git - mirror_frr.git/commit - lib/event.c
lib: Figure out if we are being starved for cpu
authorDonald Sharp <sharpd@nvidia.com>
Wed, 3 Feb 2021 14:13:59 +0000 (09:13 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 20 Jan 2022 16:56:27 +0000 (11:56 -0500)
commitab01a00176db60080047731ab548136e773b6c51
treedbfb8df8a6273dbbf259ec19f89e2484508f1921
parentb542c4a3c7ad5e1c7e24f9e021926841d2634ac1
lib: Figure out if we are being starved for cpu

If a thread timer should have popped CPU_CONSUMED_CHECK
seconds in the past, and we are only handling it now.  Consider
the thread starved and notice it.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/lib_errors.c
lib/lib_errors.h
lib/thread.c