https://github.com/sbooth/cxxringbuffer
A lock-free SPSC ring buffer.
https://github.com/sbooth/cxxringbuffer
cpp cpp20 lock-free ring-buffer
Last synced: 11 days ago
JSON representation
A lock-free SPSC ring buffer.
- Host: GitHub
- URL: https://github.com/sbooth/cxxringbuffer
- Owner: sbooth
- License: mit
- Created: 2025-11-06T15:25:40.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-01-23T17:33:15.000Z (18 days ago)
- Last Synced: 2026-01-24T07:46:54.125Z (17 days ago)
- Topics: cpp, cpp20, lock-free, ring-buffer
- Language: C++
- Homepage:
- Size: 206 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# CXXRingBuffer
A lock-free SPSC ring buffer.
This class is thread safe when used with a single producer and a single consumer.
> [!NOTE]
> C++20 is required.
## Installation
### Swift Package Manager
Add a package dependency to https://github.com/sbooth/CXXRingBuffer in Xcode.
### Manual or Custom Build
1. Clone the [CXXRingBuffer](https://github.com/sbooth/CXXRingBuffer) repository.
2. `swift build`.
## License
Released under the [MIT License](https://github.com/sbooth/CXXRingBuffer/blob/main/LICENSE.txt).