Registry / other / spscqueue

spscqueue

JSON →
library1.1vcpkgunverified

A bounded single-producer single-consumer wait-free and lock-free queue written in C++11

vcpkg install spscqueue
INSTALL
IMPORT
SIG · SPSCQUEUE
S
spscqueue
othercppv1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

spscqueue/SPSCQueue.h
#include <spscqueue/SPSCQueue.h>

Push and pop an integer from a bounded SPSC queue

#include <spscqueue/SPSCQueue.h> #include <iostream> int main() { SPSCQueue<int> queue(1024); queue.push(42); int value; if (queue.pop(value)) { std::cout << "Popped: " << value << std::endl; } return 0; }
Debug
Known issues
gotchaOnly supports single producer and single consumer; using multiple producers or consumers leads to data races
fix
Ensure only one thread calls push() and one thread calls pop()
affects: *
Upgrade
Version history
1.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources

No resource links recorded.

spscqueue — pip install spscqueue · libregistry