Skip to content

Commit 960c56b

Browse files
authored
Merge pull request #1 from Sudha247/latest-trunk
Build with latest trunk
2 parents 2b30947 + 8b8238a commit 960c56b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/tracedAtomic.ml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
open EffectHandlers
2-
open EffectHandlers.Shallow
1+
open Effect
2+
open Effect.Shallow
33

44
type 'a t = 'a Atomic.t * int
55

6-
type _ eff +=
7-
| Make : 'a -> 'a t eff
8-
| Get : 'a t -> 'a eff
9-
| Set : ('a t * 'a) -> unit eff
10-
| Exchange : ('a t * 'a) -> 'a eff
11-
| CompareAndSwap : ('a t * 'a * 'a) -> bool eff
12-
| FetchAndAdd : (int t * int) -> int eff
6+
type _ Effect.t +=
7+
| Make : 'a -> 'a t Effect.t
8+
| Get : 'a t -> 'a Effect.t
9+
| Set : ('a t * 'a) -> unit Effect.t
10+
| Exchange : ('a t * 'a) -> 'a Effect.t
11+
| CompareAndSwap : ('a t * 'a * 'a) -> bool Effect.t
12+
| FetchAndAdd : (int t * int) -> int Effect.t
1313

1414
module IntSet = Set.Make(
1515
struct
@@ -106,7 +106,7 @@ let handler current_process_id runner =
106106
runner ()));
107107
exnc = (fun s -> raise s);
108108
effc =
109-
(fun (type a) (e : a eff) ->
109+
(fun (type a) (e : a Effect.t) ->
110110
match e with
111111
| Make v ->
112112
Some

0 commit comments

Comments
 (0)