Changeset 1810 for trunk/psLib/src/sysUtils/psMemory.h
- Timestamp:
- Sep 14, 2004, 1:48:25 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psMemory.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psMemory.h
r1606 r1810 12 12 * @ingroup MemoryManagement 13 13 * 14 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-0 8-23 22:36:03$14 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-09-14 23:48:25 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 73 73 pthread_mutex_t refCounterMutex; ///< mutex to ensure exclusive access to reference counter 74 74 psReferenceCount refCounter; ///< how many times pointer is referenced 75 bool persistent; ///< marks if this non-user persistent data like error stack, etc. 75 76 const void *endblock; ///< initialised to p_psMEMMAGIC 76 77 } … … 163 164 void *ptr ///< the memory block 164 165 ); 166 167 /** Set the memory as persistent so that it is ignored when detecting memory leaks. 168 * 169 * Used to mark a memory block as persistent data within the library, 170 * i.e., non user-level data used to hold psLib's state or cache data. Such 171 * examples of this class of memory is psTrace's trace-levels and dynamic 172 * error codes. 173 * 174 * Memory marked as persistent is excluded from memory leak checks. 175 * 176 */ 177 void p_psMemSetPersistent( 178 void *ptr, ///< the memory block to operate on 179 bool value ///< true if memory is persistent, otherwise false 180 ); 181 182 /** Get the memory's persistent flag. 183 * 184 * Checks if a memory block has been marked as persistent by 185 * p_psMemSetPresistent. 186 * 187 * Memory marked as persistent is excluded from memory leak checks. 188 * 189 * @return bool true if memory is marked persistent, otherwise false. 190 */ 191 bool p_psMemGetPersistent( 192 void *ptr ///< the memory block to check. 193 ); 194 165 195 166 196 /** Memory re-allocation. This operates much like realloc(), but is guaranteed to return a non-NULL value.
Note:
See TracChangeset
for help on using the changeset viewer.
