Changeset 432 for trunk/psLib/src/sys/psMemory.h
- Timestamp:
- Apr 15, 2004, 4:18:57 PM (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
r430 r432 14 14 * @author Robert Lupton, Princeton University 15 15 * 16 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $17 * @date $Date: 2004-04-1 5 21:22:09$16 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2004-04-16 02:18:57 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 79 79 80 80 /// Check for memory leaks 81 int psMemCheckLeaks(int id0, ///< don't list blocks with id < id0 82 psMemBlock ***arr, ///< pointer to array of pointers to leaked blocks, or NULL 83 FILE *fd) ///< print list of leaks to fd (or NULL) 84 ; 81 int psMemCheckLeaks( 82 int id0, ///< don't list blocks with id < id0 83 psMemBlock ***arr, ///< pointer to array of pointers to leaked blocks, or NULL 84 FILE *fd ///< print list of leaks to fd (or NULL) 85 ); 85 86 86 87 /// Check for memory corruption 87 int psMemCheckCorruption(int abort_on_error) ///< Abort on detecting corruption? 88 ; 88 int psMemCheckCorruption( 89 int abort_on_error ///< Abort on detecting corruption? 90 ); 89 91 90 92 /// Return reference counter 91 int psMemGetRefCounter(void *vptr) ///< Pointer to get refCounter for 92 ; 93 int psMemGetRefCounter( 94 void *vptr ///< Pointer to get refCounter for 95 ); 93 96 94 97 /// Increment reference counter and return the pointer 95 void *psMemIncrRefCounter(void *vptr) ///< Pointer to increment refCounter, and return 96 ; 98 void *psMemIncrRefCounter( 99 void *vptr ///< Pointer to increment refCounter, and return 100 ); 97 101 98 102 /// Decrement reference counter and return the pointer 99 void *psMemDecrRefCounter(void *vptr) ///< Pointer to decrement refCounter, and return 100 ; 103 void *psMemDecrRefCounter( 104 void *vptr ///< Pointer to decrement refCounter, and return 105 ); 101 106 102 107 /// Set callback for problems 103 psMemProblemCallback psMemProblemCallbackSet(psMemProblemCallback func) ///< Function to run 104 ; 108 psMemProblemCallback psMemProblemCallbackSet( 109 psMemProblemCallback func ///< Function to run 110 ); 105 111 106 112 /// Set callback for out-of-memory 107 psMemExhaustedCallback psMemExhaustedCallbackSet(psMemExhaustedCallback func) ///< Function to run 108 ; 113 psMemExhaustedCallback psMemExhaustedCallbackSet( 114 psMemExhaustedCallback func ///< Function to run 115 ); 109 116 110 117 /// Set call back for when a particular memory block is allocated 111 psMemCallback psMemAllocateCallbackSet(psMemAllocateCallback func) ///< Function to run 112 ; 118 psMemAllocateCallback psMemAllocateCallbackSet( 119 psMemAllocateCallback func ///< Function to run 120 ); 113 121 114 122 /// Set call back for when a particular memory block is freed 115 psMemCallback psMemFreeCallbackSet(psMemFreeCallback func) ///< Function to run 116 ; 123 psMemFreeCallback psMemFreeCallbackSet( 124 psMemFreeCallback func ///< Function to run 125 ); 117 126 118 127 /// get next memory ID … … 121 130 122 131 /// set p_psMemAllocateID to id 123 long psMemAllocateIDSet(long id) ///< ID to set 124 ; 132 long psMemAllocateIDSet( 133 long id ///< ID to set 134 ); 125 135 126 136 /// set p_psMemFreeID to id 127 long psMemFreeIDSet(long id) ///< ID to set 128 ; 137 long psMemFreeIDSet( 138 long id ///< ID to set 139 ); 129 140 130 141 //@} End of public Functions
Note:
See TracChangeset
for help on using the changeset viewer.
