Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: add MPSC Queue #2612

Merged
merged 1 commit into from
Dec 29, 2023
Merged

common: add MPSC Queue #2612

merged 1 commit into from
Dec 29, 2023

Commits on Dec 29, 2023

  1. common: add MPSC Queue

    This queue is core to the new parallel hash index. It implements the
    design in this [blog][1], which is also used by Rust. The design is quite
    simple, and producers are wait-free. The main disadvantage is it is
    non-blocking, but adding blocking pop() support is tricky, and currently
    not needed.
    
      [1]: https://www.1024cores.net/home/lock-free-algorithms/queues/non-intrusive-mpsc-node-based-queue
    Riolku committed Dec 29, 2023
    Configuration menu
    Copy the full SHA
    99dbf7a View commit details
    Browse the repository at this point in the history