]> git.proxmox.com Git - mirror_frr.git/commit - lib/thread.c
lib: Fix thread removal from a pqueue
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 29 Nov 2017 19:26:44 +0000 (14:26 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 29 Nov 2017 19:53:59 +0000 (14:53 -0500)
commit522f7f992384dc9273a9cbf88cfec1ebccdf4866
tree4bd19f4f3ece4ad7195c3c0b69da47563e1f94ab
parent69df82f3b5d3aa343c769f280fb811ce019601d4
lib: Fix thread removal from a pqueue

When we remove a thread from a pqueue, use the saved
index to go to the correct spot immediately instead of
having to search the whole queue for it.

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