Changeset 4397 for trunk/psLib/src/sys/psMemory.h
- Timestamp:
- Jun 24, 2005, 5:32:42 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psMemory.h (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psMemory.h
r4392 r4397 12 12 * @ingroup MemoryManagement 13 13 * 14 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-25 0 2:02:05$14 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-25 03:32:42 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 49 49 50 50 /// typedef for memory identification numbers. Guaranteed to be some variety of integer. 51 typedef psU64 psMem oryId;51 typedef psU64 psMemId; 52 52 53 53 /// typedef for a memory block's reference count. Guaranteed to be some variety of integer. … … 69 69 psFreeFunc freeFcn; ///< deallocator. If NULL, use generic deallocation. 70 70 size_t userMemorySize; ///< the size of the user-portion of the memory block 71 const psMem oryId id; ///< a unique ID for this allocation71 const psMemId id; ///< a unique ID for this allocation 72 72 const char *file; ///< set from __FILE__ in e.g. p_psAlloc 73 73 const psS32 lineno; ///< set from __LINE__ in e.g. p_psAlloc … … 84 84 * @ingroup memCallback 85 85 */ 86 typedef psMem oryId(*psMemAllocateCallback) (86 typedef psMemId(*psMemAllocateCallback) ( 87 87 const psMemBlock* ptr ///< the psMemBlock just allocated 88 88 ); … … 93 93 * @ingroup memCallback 94 94 */ 95 typedef psMem oryId(*psMemFreeCallback) (95 typedef psMemId(*psMemFreeCallback) ( 96 96 const psMemBlock* ptr ///< the psMemBlock being freed 97 97 ); … … 259 259 */ 260 260 psS32 psMemCheckLeaks( 261 psMem oryId id0, ///< don't list blocks with id < id0261 psMemId id0, ///< don't list blocks with id < id0 262 262 psMemBlock* ** arr, ///< pointer to array of pointers to leaked blocks, or NULL 263 263 FILE * fd, ///< print list of leaks to fd (or NULL) … … 394 394 * @ingroup memCallback 395 395 * 396 * @return psMem oryId the next memory ID to be used397 */ 398 psMem oryId psMemGetId(void);396 * @return psMemId the next memory ID to be used 397 */ 398 psMemId psMemGetId(void); 399 399 400 400 /** set p_psMemAllocateID to specific id … … 407 407 * @ingroup memCallback 408 408 * 409 * @return psMem oryId409 * @return psMemId 410 410 * 411 411 * @see psMemAllocateCallbackSet 412 412 */ 413 psMem oryId psMemAllocateCallbackSetID(414 psMem oryId id ///< ID to set413 psMemId psMemAllocateCallbackSetID( 414 psMemId id ///< ID to set 415 415 ); 416 416 … … 424 424 * @ingroup memCallback 425 425 * 426 * @return psMem oryId the old p_psMemFreeID426 * @return psMemId the old p_psMemFreeID 427 427 * 428 428 * @see psMemFreeCallbackSet 429 429 */ 430 psMem oryId psMemFreeCallbackSetID(431 psMem oryId id ///< ID to set430 psMemId psMemFreeCallbackSetID( 431 psMemId id ///< ID to set 432 432 ); 433 433
Note:
See TracChangeset
for help on using the changeset viewer.
