File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,9 @@ let tracing = ref false
4444let finished_processes = ref 0
4545
4646type 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
150148let 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
157154let rec last_element l =
158155 match l with
You can’t perform that action at this time.
0 commit comments