IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7428


Ignore:
Timestamp:
Jun 8, 2006, 10:05:47 AM (20 years ago)
Author:
Paul Price
Message:

Adding p_psMemAllocatePersistent, per bug 753.

File:
1 edited

Legend:

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

    r7388 r7428  
    1 %%% $Id: psLibSDRS.tex,v 1.398 2006-06-07 04:06:37 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.399 2006-06-08 20:05:47 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    445445\end{prototype}
    446446
     447Sometimes system code will need to allocate complex structures (such
     448as a \code{psMetadata}) that must all be marked as \code{persistent}.
     449To save this code the trouble of tracking down every allocated pointer
     450to mark each \code{persistent}, we define an additional private
     451function, \code{p_psMemAllocatePersistent}, that sets the use of
     452\code{persistent} within \code{psAlloc}.  This allows us to call
     453\code{p_psMemAllocatePersistent(true)}, allocate all our persistent
     454memory, and then call \code{p_psMemAllocatePersistent(false)}.  The
     455initial setting shall be for allocated memory not to be marked
     456\code{persistent}.
     457\begin{prototype}
     458bool p_psMemAllocatePersistent(bool is_persistent);
     459\end{prototype}
    447460
    448461The \code{psMemBlock} structure element \code{refCounter} is provided
Note: See TracChangeset for help on using the changeset viewer.