Enhance pqueue so we can remove items from the middle.
commitc210db0d41f4a47496e12c0af829f8ae0a5c2cd2
authorNick Mathewson <nickm@torproject.org>
Thu, 10 Dec 2009 16:57:30 +0000 (10 11:57 -0500)
committerNick Mathewson <nickm@torproject.org>
Sun, 13 Dec 2009 00:06:38 +0000 (12 19:06 -0500)
treec0000252ac688c6e9525206b4aa906088f4b902d
parentd086c9a7f73ce5b9b7cf4add07fa7d071b829081
Enhance pqueue so we can remove items from the middle.

This changes the pqueue API by requiring an additional int in every
structure that we store in a pqueue to hold the index of that structure
within the heap.
src/common/container.c
src/common/container.h
src/or/dns.c
src/test/test_containers.c