anchor.diff:          {proc, Pos0, Limit0, AccRecN} ->
               State1 = State0#state{current_pos=Pos0, limit=Limit0},
               case prep_fold(State1) of
  -                #state{status=idle} = State2 ->
  -                    ?debug("slave_loop ~p: prep_fold -> idle", [self()]),
  +                {State2, done} ->
  +                    ?debug("slave_loop ~p: prep_fold -> done", [self()]),
                       MasterPid ! {done, AccRecN},
                       procs_slave_loop(State2);
                   {#state{current_pos=NextPos, limit=Limit} = State2, RecL, RecN} ->
  
positive.code:             Progress = ds_progress:update(Progress0, Spec0, AccRecN),
              State1 = State0#state{current_pos=Pos0, limit=Limit0, progress=Progress},
              case prep_fold(State1) of
                  #state{status=idle} = State2 ->
                      ?debug("master: prep_fold -> idle", []),
                      NextPid ! get_result,
                      procs_master_loop(State2);
                  {#state{current_pos=NextPos, limit=Limit} = State2, RecL, RecN} ->
                      NextPid ! {proc, NextPos, Limit, RecN},
                      State = fold(State2, RecL),
  
negative.code:         , filename
          , accessors
          }).
  
  
  spec_table(Type, Tab, FieldSpec, Limit, Opts) ->
      ds_opts:setopts(Opts),
      spec_table(Type, Tab, FieldSpec, Limit).
  
  %% For dets, we also support passing the filename as the table identifier,
  %% in which case we will open and close it for ourselves:
  spec_table(dets, Filename, FieldSpec, Limit) when is_list(Filename) ->
      Handle = #handle{type=dets, table=undefined, filename=Filename,
                       accessors=accessors(dets)},
      State = init_fold(Handle, FieldSpec, Limit),
      procs_init(State);
  spec_table(Type, Tab, FieldSpec, Limit) ->
      Handle = #handle{type=Type, table=Tab, accessors=accessors(Type)},
      State = init_fold(Handle, FieldSpec, Limit),
      procs_init(State).
  
  spec_disk_log(Filename, FieldSpec, Limit, Opts) ->
      ds_opts:setopts(Opts),
      spec_disk_log(Filename, FieldSpec, Limit).
  
  spec_disk_log(Filename, FieldSpec, Limit) ->
      State = init_fold(Filename, FieldSpec, Limit),
      procs_init(State).
  
  
  %% Entry point of parallel processing probe runner;
  %% start of master that runs in-process in the drv
  