package lockfree

  1. Overview
  2. Docs
Lock-free data structures for multicore OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

lockfree-0.3.1.tbz
sha256=565f758aef2134af4c242e82df91e6262ace6fdebe25b070de01c07bc9fd49b7
sha512=f27242e825588ec569417ef9bf510975b1ee17b7bc78ed54c879b2f6d731e03c300f38ee20fef6bc45ed715e59a4a3bdb61cbccefe817570f916fe20ce4cefeb

Description

Published: 02 Feb 2023

README

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.

Dependencies (5)

  1. yojson >= "2.0.2"
  2. alcotest >= "1.6.0"
  3. domain_shims >= "0.1.0"
  4. dune >= "3.0"
  5. ocaml >= "4.12"

Dev Dependencies (4)

  1. dscheck with-test & >= "0.0.1"
  2. qcheck-alcotest with-test & >= "0.18.1"
  3. qcheck-stm with-test & >= "0.1"
  4. qcheck with-test & >= "0.18.1"

Used by (1)

  1. domainslib = "0.5.0"

Conflicts

None

OCaml

Innovation. Community. Security.