chambart / lockfree

Lock-free data structures for multicore OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lockfree — Lock-free data structures for Multicore OCaml


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

Usage

lockfree cam 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.

About

Lock-free data structures for multicore OCaml

License:ISC License


Languages

Language:OCaml 99.5%Language:Shell 0.3%Language:Makefile 0.2%