Skip to content

Commit

Permalink
Merge with main.
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrm committed Nov 3, 2023
1 parent ad8782a commit 1d49325
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bench/bench_skiplist.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open Lockfree
open Saturn

let workload num_elems num_threads add remove =
let sl = Skiplist.create () in
Expand Down
3 changes: 3 additions & 0 deletions src/saturn.ml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ module Single_prod_single_cons_queue =

module Single_consumer_queue = Saturn_lockfree.Single_consumer_queue
module Relaxed_queue = Mpmc_relaxed_queue
module Skiplist = Saturn_lockfree.Skiplist


module Backoff = Saturn_lockfree.Backoff
4 changes: 3 additions & 1 deletion src/saturn.mli
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ module Single_prod_single_cons_queue =
module Single_consumer_queue = Saturn_lockfree.Single_consumer_queue
module Relaxed_queue = Mpmc_relaxed_queue

module Backoff = Saturn_lockfree.Backoff
module Skiplist = Saturn_lockfree.Skiplist

(** {2 Other} *)
module Backoff = Saturn_lockfree.Backoff
3 changes: 2 additions & 1 deletion src_lockfree/saturn_lockfree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ module Work_stealing_deque = Ws_deque
module Single_prod_single_cons_queue = Spsc_queue
module Single_consumer_queue = Mpsc_queue
module Relaxed_queue = Mpmc_relaxed_queue
module Backoff = Backoff
module Skiplist = Skiplist

module Backoff = Backoff
2 changes: 1 addition & 1 deletion src_lockfree/saturn_lockfree.mli
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ module Work_stealing_deque = Ws_deque
module Single_prod_single_cons_queue = Spsc_queue
module Single_consumer_queue = Mpsc_queue
module Relaxed_queue = Mpmc_relaxed_queue
module Skiplist = Skiplist

(** {2 Other} *)

module Backoff = Backoff
module Skiplist = Skiplist
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions test/skiplist/dune
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(rule
(copy ../../src/backoff.ml backoff.ml))
(copy ../../src_lockfree/backoff.ml backoff.ml))

(rule
(copy ../../src/skiplist.ml skiplist.ml))
(copy ../../src_lockfree/skiplist.ml skiplist.ml))

(test
(name skiplist_dscheck)
Expand All @@ -11,12 +11,12 @@

(test
(name qcheck_skiplist)
(libraries lockfree qcheck qcheck-alcotest)
(libraries saturn qcheck qcheck-alcotest)
(modules qcheck_skiplist))

(test
(name stm_skiplist)
(modules stm_skiplist)
(libraries lockfree qcheck-stm.sequential qcheck-stm.domain)
(libraries saturn qcheck-stm.sequential qcheck-stm.domain)
(action
(run %{test} --verbose)))
2 changes: 1 addition & 1 deletion test/skiplist/qcheck_skiplist.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Skiplist = Lockfree.Skiplist
module Skiplist = Saturn.Skiplist

let tests_sequential =
QCheck.
Expand Down
2 changes: 1 addition & 1 deletion test/skiplist/stm_skiplist.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

open QCheck
open STM
module Skiplist = Lockfree.Skiplist
module Skiplist = Saturn.Skiplist

module WSDConf = struct
type cmd = Mem of int | Add of int | Remove of int
Expand Down

0 comments on commit 1d49325

Please sign in to comment.