UPDATE, please see Q repository for MPSC, SPSC etc queues.
-
std::atomic aquire/release + relaxed memory ordering and cache line padded
-
std::atomic aquire/release + relaxed memory ordering
-
mutex protected shared_queue as used in g2log and g3log
-
Unzip 3rdParty/gtest*.zip to
-
On Linux mkdir build; cd build cmake cmake -DCMAKE_BUILD_TYPE=Release .. make
-
On Windows mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio " .. msbuild CIRCULARFIFO.sln \p:Configuration=Release
This should build three binaries-unit tests that utilizes the lock-free,wait-free CircularFifos (+ the broken one) that are found in src
Enjoy Kjell Hedstrom (hedstrom at kjellkod dot cc)