lockfree — Lock-free data structures for Multicore OCamlA collection of Concurrent Lockfree Data Structures for OCaml 5. It contains:
lockfree can be installed from opam: opam install lockfree. Sample usage of Ws_deque is illustrated below.
module Ws_deque = Ws_deque.M
let q = Ws_deque.create ()
let () = Ws_deque.push q 100
let () = assert (Ws_deque.pop q = 100)There is a number of benchmarks in bench/ directory. You can run them with make bench. See bench/README.md for more details.
Contributions of more lockfree data structures appreciated! Please create issues/PRs to this repo.