]> git.puffer.fish Git - matthieu/frr.git/commit
lib: don't awaken from poll for every timer
authorMark Stapp <mjs@voltanet.io>
Thu, 18 Feb 2021 14:37:09 +0000 (09:37 -0500)
committerMark Stapp <mjs@voltanet.io>
Thu, 18 Feb 2021 14:42:03 +0000 (09:42 -0500)
commit96fe578a643bf78866d34281d4baf59ac9dd840a
tree50d438a44ae7f9fe2bedd0062971aa16ab4bcc13
parent4322dea7e07b74768cf23eda2c082a59bc36af86
lib: don't awaken from poll for every timer

Only ask the event-loop poll() to awaken if a newly-added timer
actually might have changed the required timeout. Also compute
timer deadline outside of mutex locks.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
lib/thread.c