cpq 0.2.0

A Concurrent Priority Queue implemented in Safe Rust.
Documentation
  • Coverage
  • 0%
    0 out of 24 items documented0 out of 17 items with examples
  • Size
  • Source code size: 21.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.92 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • hankjordan/cpq
    4 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hankjordan

Concurrent Priority Queue

A Priority Queue allows you to prioritize what items come out of the queue based on some predetermined value.

A Concurrent Priority Queue allows you to do this, but it's a Send + Sync type with interior mutability (it can be modified without having an exclusive / mutable reference).

See examples/main for usage - it's an extremely simple API based on push / pop.

Soundness

  • v0.1.0 was an implementation with raw atomics, using Unsafe Rust.
  • v0.2.0 or greater uses a RwLock internally, with zero Unsafe Rust.