Changeset 7428
- Timestamp:
- Jun 8, 2006, 10:05:47 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r7388 r7428 1 %%% $Id: psLibSDRS.tex,v 1.39 8 2006-06-07 04:06:37 price Exp $1 %%% $Id: psLibSDRS.tex,v 1.399 2006-06-08 20:05:47 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 445 445 \end{prototype} 446 446 447 Sometimes system code will need to allocate complex structures (such 448 as a \code{psMetadata}) that must all be marked as \code{persistent}. 449 To save this code the trouble of tracking down every allocated pointer 450 to mark each \code{persistent}, we define an additional private 451 function, \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 454 memory, and then call \code{p_psMemAllocatePersistent(false)}. The 455 initial setting shall be for allocated memory not to be marked 456 \code{persistent}. 457 \begin{prototype} 458 bool p_psMemAllocatePersistent(bool is_persistent); 459 \end{prototype} 447 460 448 461 The \code{psMemBlock} structure element \code{refCounter} is provided
Note:
See TracChangeset
for help on using the changeset viewer.
