]> git.proxmox.com Git - mirror_frr.git/commit - lib/frrevent.h
libs, bgpd: improve task cancellation by argument value
authorMark Stapp <mjs@voltanet.io>
Wed, 27 Jan 2021 19:32:22 +0000 (14:32 -0500)
committerMark Stapp <mjs@voltanet.io>
Tue, 9 Feb 2021 17:10:51 +0000 (12:10 -0500)
commita9318a32871e7ae6934a7df8adf78245ccc1d140
treeb61d80b18c85305fd29dbeccc210bf795a0f97be
parentaea25d1ec828226fa35af1b333d346883deefb28
libs, bgpd: improve task cancellation by argument value

Extend the thread_cancel_event api so that it's more complete:
look in all the lists of events, including io and timers, for
matching tasks. Add a limited version of the api that only
examines tasks in the event and ready queues.

BGP appears to require the old behavior, so change its macro
to use the more limited cancel api.

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