For a detailed explanation on how the queue works see my blog post.
To start, the repository has to be cloned:
$ git clone https://github.com/RobertCrupa/threadsafe-queue.git
$ cd threadsafe-queueTo create build folder and run tests:
$ cmake -S . -B build
$ cmake --build build
$ cd build && ./queue_test