lnd.xprv/queue
Andras Banki-Horvath 56282db30a
queue: Introducing a general purpose priority queue.
This commit introduces PriorityQueue, which is a general, heap
based priority queue, and PriorityQueueItem which is an interface
that concrete priority queue items must implement.
This implementation is encapsulated, users do not need to use any
other package for full functionality.
PriorityQueue exports the usual public methids: Push, Pop, Top,
Empty and Len. For full documentaton consult the priority_queue.go,
for usage: priority_queue_test.go
2019-12-11 16:08:05 +01:00
..
gc_queue_test.go multi: add buffer.Write and pool.WriteBuffer, make GCQueue generic 2019-02-15 19:31:24 -08:00
gc_queue.go multi: add buffer.Write and pool.WriteBuffer, make GCQueue generic 2019-02-15 19:31:24 -08:00
go.mod queue: run go mod tidy 2019-09-23 15:11:20 +02:00
go.sum ticker+queue: run go mod tidy 2019-07-26 09:29:38 +02:00
priority_queue_test.go queue: Introducing a general purpose priority queue. 2019-12-11 16:08:05 +01:00
priority_queue.go queue: Introducing a general purpose priority queue. 2019-12-11 16:08:05 +01:00
queue_test.go queue/queue_test: adds 100% test coverage 2018-12-03 13:58:25 -08:00
queue.go multi: replace manual CAS with sync.Once in several more modules 2019-06-12 09:37:26 -03:00