File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ let run_one_domain ~budgetf ?(n_msgs = 25 * Util.iter_factor) () =
86
86
let t = Bounded_q. create () in
87
87
88
88
let op push =
89
- if push then Bounded_q. push t 101 else Bounded_q. pop_opt t |> ignore
89
+ if push then Bounded_q. push t ( ref push) else Bounded_q. pop_opt t |> ignore
90
90
in
91
91
92
92
let init _ =
@@ -128,7 +128,7 @@ let run_one ~budgetf ~n_adders ~n_takers ?(n_msgs = 10 * Util.iter_factor) () =
128
128
let n = Countdown. alloc n_msgs_to_add ~domain_index ~batch: 100 in
129
129
if 0 < n then begin
130
130
for i = 1 to n do
131
- Bounded_q. push t i
131
+ Bounded_q. push t ( ref i)
132
132
done ;
133
133
work ()
134
134
end
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ let run_one_domain ~budgetf ?(n_msgs = 50 * Util.iter_factor) () =
5
5
let t = Mpmcq. create ~padded: true () in
6
6
7
7
let op push =
8
- if push then Mpmcq. push t 101
8
+ if push then Mpmcq. push t ( ref push)
9
9
else match Mpmcq. pop_exn t with _ -> () | exception Mpmcq. Empty -> ()
10
10
in
11
11
@@ -41,7 +41,7 @@ let run_one ~budgetf ~n_adders ~n_takers () =
41
41
let n = Countdown. alloc n_msgs_to_add ~domain_index: i ~batch: 1000 in
42
42
if 0 < n then begin
43
43
for i = 1 to n do
44
- Mpmcq. push t i
44
+ Mpmcq. push t ( ref i)
45
45
done ;
46
46
work ()
47
47
end
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ let run_one_domain ~budgetf ?(n_msgs = 50 * Util.iter_factor) () =
5
5
let t = Mpscq. create ~padded: true () in
6
6
7
7
let op push =
8
- if push then Mpscq. push t 101
8
+ if push then Mpscq. push t ( ref push)
9
9
else match Mpscq. pop_exn t with _ -> () | exception Mpscq. Empty -> ()
10
10
in
11
11
@@ -40,7 +40,7 @@ let run_one ~budgetf ~n_adders () =
40
40
let n = Countdown. alloc n_msgs_to_add ~domain_index: i ~batch: 1000 in
41
41
if 0 < n then begin
42
42
for i = 1 to n do
43
- Mpscq. push t i
43
+ Mpscq. push t ( ref i)
44
44
done ;
45
45
work ()
46
46
end
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ let run_one_domain ~budgetf ?(n_msgs = 50 * Util.iter_factor) () =
7
7
let cursor = ref (Stream. tap t) in
8
8
9
9
let op push =
10
- if push then Stream. push t 101
10
+ if push then Stream. push t ( ref push)
11
11
else
12
12
match Stream. peek_opt ! cursor with
13
13
| None -> ()
@@ -44,7 +44,7 @@ let run_one ~budgetf ~n_pusher () =
44
44
let n = Util. alloc n_msgs_to_add in
45
45
if 0 < n then begin
46
46
for i = 1 to n do
47
- Stream. push t i
47
+ Stream. push t ( ref i)
48
48
done ;
49
49
work ()
50
50
end
You can’t perform that action at this time.
0 commit comments