Skip to content

nnewson/wfQueue

Repository files navigation

WFQueue (Multi-Producer/Single-Consumer) in C++

Setup vcpkg on the build machine, and ensure that VCPKG_ROOT is available in the PATH environment variable. Details of how to do this can be found at steps 1 and 2 in this getting started doc. Ensure the vcpkg executable is available in your PATH.

Configure CMake, which will install and build dependencies via vcpkg. Additionally, since I use NeoVim, I export the compile_commands.json to the build directory to for use with clangd:

cmake --preset=vcpkg -DCMAKE_EXPORT_COMPILE_COMMANDS=1

Build the test via CMake:

cmake --build build

Run the tests:

./build/test_wait_free_queue

Build documentation into the docs folder:

doxygen Doxyfile

You can also build and test in a Docker containter.

Build the container:

docker build -t wf-queue-test .

Run the tests in the container:

docker run --rm wf-queue-test

About

A single consumer / multi producer, wait free queue

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors