This repository contains code for this article
Project structures:
rust-atomigs/
- contains Rust code, core of the logicc_atomics/
- C extension, wraps Rust codetests/
- contains example of the code
Make sure to have Rust and C compilers installed, also you need these tools:
First, make sure to install Ruby dependencies by running bundle
.
just build-atomics
compiles Rust and C code into a single shared objectjust build-compile-commands-json
buildscompile_commands.json
for your LSP (like clangd)just mpmc-queue-simulation
builds and runs the simulation from the sectionBetter Queue
->Marking
ruby tests/<file>.rb
runs individual example
ruby tests/parallel-tests.rb
ruby tests/web-server.rb