anchor.diff:      {atomic, _} = mnesia:transaction(F),
       ok.
   
  -%%--------------------------------------------------------------------
  -%% Function: is_ready_for_checking(Id) -> bool()
  -%% Description: Attempt to mark the torrent for checking. If this
  -%%   succeeds, returns true, else false
  -%%--------------------------------------------------------------------
  +% @doc Attempt to mark the torrent for checking.
  +%  <p>If this succeeds, returns true, else false</p>
  +% @end
  +-spec is_ready_for_checking(integer()) -> boolean().
   is_ready_for_checking(Id) ->
       F = fun () ->
                   Q = qlc:q([TM || TM <- mnesia:table(tracking_map),
  
positive.code:       end).
  
  
  %%--------------------------------------------------------------------
  %% Function: statechange(Id, What) -> ok
  %% Description: Alter the state of the Tracking map identified by Id
  %%   by What (see alter_map/2).
  %%--------------------------------------------------------------------
  statechange(Id, What) ->
      F = fun () ->
                  [TM] = mnesia:read(tracking_map, Id, write),
  
negative.code:         end,
      {atomic, T} = mnesia:transaction(F),
      T.
  
  %% =======================================================================
  
  init([]) ->
      {ok, #state{ monitoring = dict:new() }}.
  