SPSCQueue
A bounded single-producer single-consumer wait-free and lock-free queue written in C++20
- 1.3k
- C++
- MIT
- 5 d ago
A bounded single-producer single-consumer wait-free and lock-free queue written in C++20
Portable C, C++ code for hash tables, bloom filters, string-search, string utilities, hash functions, arc4random
lock-free data structures: SPSC ring buffer, MPMC ring buffer, MPMC single linked list queue, MPMC single linked list stack; lock free memory management library using fix sized memory managed in single linked list
Single Producer Single Consumer lock-free implementation of ring queue
Close-to-metal C/CUDA lab for RL inference fast paths: persistent GPU workers, hugepage KV arenas, cacheline-aware command rings, and async reward handoff. Goal: remove page faults, malloc/free, scheduler wakeups, CPU round-trips, and KV migration from the per-token path.
C++20 low-latency lock-free message broker with SPSC queues, WAL persistence, mmap storage, metrics, CLI demos, benchmarks, and CI.