All Projects → ocaml-multicore → lockfree

ocaml-multicore / lockfree

Licence: ISC license
Lock-free data structures for multicore OCaml

Programming Languages

ocaml
1615 projects

lockfree — Lock-free data structures for Multicore OCaml


A collection of Concurrent Lockfree Data Structures for OCaml 5. It contains:

Usage

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)

Benchmarks

There is a number of benchmarks in bench/ directory. You can run them with make bench. See bench/README.md for more details.

Contributing

Contributions of more lockfree data structures appreciated! Please create issues/PRs to this repo.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].