IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 411


Ignore:
Timestamp:
Apr 8, 2004, 7:16:54 PM (22 years ago)
Author:
Paul Price
Message:

Declared that psFree will generate an error if the reference counter
!= 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r408 r411  
    1 %%% $Id: psLibSDRS.tex,v 1.35 2004-04-09 01:29:44 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.36 2004-04-09 05:16:54 price Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
    … …  
    486486management routines respect the use of the \code{refCounter} field:
    487487\code{psFree} will not free a block for which \code{refCounter != 1},
    488 and \code{psAlloc} will initialize the field to 1.  \tbd{should psFree
    489 give an error if refCounter $>$ 1 or actually do the decrement?}
    490 However, they do not (and cannot practically) enforce the use of the
    491 counters; this is a requirement of external APIs which intend to use
    492 the feature.
     488and \code{psAlloc} will initialize the field to 1.  \tbd{\code{psFree}
     489should generate an error if \code{refCounter != 1}.}  However, they do
     490not (and cannot practically) enforce the use of the counters; this is
     491a requirement of external APIs which intend to use the feature.
    493492
    494493Several APIs are provided to manage the reference counters.  These
    … …  
    510509be in the valid range and should correspond to the address of the
    511510\code{psMemBlock}).  For an example implementation of the
    512 \code{refCounter} facilities, see the discussion of \code{psDlist}.
    513 
    514 \tbd{REF}.
     511\code{refCounter} facilities, see the discussion of \code{psDlist}
     512(\S\ref{sec:psDlist}).
    515513
    516514\subsubsection{Relation of Memory Management to Structures}
    … …  
    10251023
    10261024\subsection{Doubly-linked lists}
    1027 \hlabel{psDlist}
     1025\label{sec:psDlist}
    10281026
    10291027\PS{} supports doubly linked lists through a type \code{psDlist}:
Note: See TracChangeset for help on using the changeset viewer.