Changeset 451 for trunk/psLib/src/sys/psMemory.h
- Timestamp:
- Apr 19, 2004, 10:14:04 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psMemory.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psMemory.h
r432 r451 14 14 * @author Robert Lupton, Princeton University 15 15 * 16 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $17 * @date $Date: 2004-04-1 6 02:18:57$16 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2004-04-19 20:14:04 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 25 25 * aligned for all storage types. 26 26 */ 27 typedef struct 27 typedef struct psMemBlock 28 28 { 29 const void *startblock; ///< initialised to p_psMEMMAGIC 29 const void* startblock; ///< initialised to p_psMEMMAGIC 30 struct psMemBlock* previousBlock; ///< previous block in allocation list 31 struct psMemBlock* nextBlock; ///< next block allocation list 30 32 const unsigned long id; ///< a unique ID for this allocation 31 const char *file; ///< set from __FILE__ in e.g. p_psAlloc33 const char* file; ///< set from __FILE__ in e.g. p_psAlloc 32 34 const int lineno; ///< set from __LINE__ in e.g. p_psAlloc 33 int refCounter; ///< how many times pointer is referenced 34 const void **endpost; ///< initialised to p_psMEMMAGIC 35 const void *endblock; ///< initialised to p_psMEMMAGIC 35 unsigned int refCounter; ///< how many times pointer is referenced 36 const void* endblock; ///< initialised to p_psMEMMAGIC 36 37 } 37 38 psMemBlock; … … 43 44 typedef long (*psMemFreeCallback)(const psMemBlock *ptr); 44 45 45 /// prototype of a callback used in error conditions 46 /** prototype of a callback used in error conditions 47 * 48 * This callback should never try to call psAlloc or psFree. 49 * 50 */ 46 51 typedef void (*psMemProblemCallback)(const psMemBlock *ptr, const char *file, int lineno); 47 52
Note:
See TracChangeset
for help on using the changeset viewer.
