Skip to content

Commit 877fe54

Browse files
authored
Merge pull request #32 from ocaml-multicore/add-blocking
Add blocking
2 parents ae7de4b + 1514eb1 commit 877fe54

25 files changed

+1059
-227
lines changed

README.md

Lines changed: 314 additions & 43 deletions
Large diffs are not rendered by default.

dune-project

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
(homepage "https://github.com/ocaml-multicore/kcas")
88
(license "ISC")
99
(package (name kcas)
10-
(synopsis "Multi-word compare-and-set library")
10+
(synopsis "Software transactional memory based on lock-free multi-word compare-and-set")
1111
(depends
1212
(ocaml (>= 5.0))
13+
(domain-local-await (>= 0.1.0))
1314
(mdx (and (>= 1.10.0) :with-test))))
1415
(package (name kcas_data)
15-
(synopsis "Compositional lock-free data structures")
16+
(synopsis "Compositional lock-free data structures and primitives for communication and synchronization")
1617
(depends
1718
(kcas (= :version))
1819
(mdx (and (>= 1.10.0) :with-test))))

kcas.opam

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
synopsis: "Multi-word compare-and-set library"
3+
synopsis:
4+
"Software transactional memory based on lock-free multi-word compare-and-set"
45
maintainer: ["KC Sivaramakrishnan <sk826@cl.cam.ac.uk>"]
56
authors: ["KC Sivaramakrishnan <sk826@cl.cam.ac.uk>"]
67
license: "ISC"
@@ -9,6 +10,7 @@ bug-reports: "https://github.com/ocaml-multicore/kcas/issues"
910
depends: [
1011
"dune" {>= "3.3"}
1112
"ocaml" {>= "5.0"}
13+
"domain-local-await" {>= "0.1.0"}
1214
"mdx" {>= "1.10.0" & with-test}
1315
"odoc" {with-doc}
1416
]

kcas_data.opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
synopsis: "Compositional lock-free data structures"
3+
synopsis:
4+
"Compositional lock-free data structures and primitives for communication and synchronization"
45
maintainer: ["KC Sivaramakrishnan <sk826@cl.cam.ac.uk>"]
56
authors: ["KC Sivaramakrishnan <sk826@cl.cam.ac.uk>"]
67
license: "ISC"

src/backoff.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1717
*)
1818

19+
(** Randomized exponential backoff mechanism. *)
20+
1921
type t
2022
(** Type of backoff values. *)
2123

src/dune

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
(library
22
(name kcas)
3-
(public_name kcas))
3+
(public_name kcas)
4+
(libraries threads domain-local-await))

0 commit comments

Comments
 (0)