Skip to content

Commit 5a6c2f8

Browse files
committed
remove unused fields
1 parent a7d4d3d commit 5a6c2f8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tracedAtomic.ml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ let tracing = ref false
4444
let finished_processes = ref 0
4545

4646
type process_data = {
47-
id : int;
4847
mutable next_op: atomic_op;
4948
mutable next_repr: int option;
5049
mutable resume_func : (unit, unit) handler -> unit;
51-
initial_func : (unit -> unit);
5250
mutable finished : bool;
5351
}
5452

@@ -148,11 +146,10 @@ let handler current_process_id runner =
148146
}
149147

150148
let spawn f =
151-
let new_id = CCVector.length processes in
152149
let fiber_f h =
153150
continue_with (fiber f) () h in
154151
CCVector.push processes
155-
{ id = new_id; next_op = Start; next_repr = None; resume_func = fiber_f; initial_func = f; finished = false }
152+
{ next_op = Start; next_repr = None; resume_func = fiber_f; finished = false }
156153

157154
let rec last_element l =
158155
match l with

0 commit comments

Comments
 (0)