IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 23, 2007, 12:47:23 PM (19 years ago)
Author:
magnier
Message:

major cleanup of the Doxygen groups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psMemory.h

    r9538 r11248  
    1 /** @file  psMemory.h
    2  *
    3  *  @brief Contains the definitions for the memory management system
    4  *
    5  *  This is the generic memory management system put inbetween the user's high level code and the OS-level
    6  *  memory allocation routines.  This system adds such features as callback routines for memory error events,
    7  *  tracing capabilities, and reference counting.
    8  *
    9  *  @author Robert DeSonia, MHPCC
    10  *  @author Robert Lupton, Princeton University
    11  *
    12  *  @ingroup MemoryManagement
    13  *
    14  *  @version $Revision: 1.61 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-10-13 21:13:48 $
    16  *
    17  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     1/* @file  psMemory.h
     2 *
     3 * @brief Contains the definitions for the memory management system
     4 *
     5 * This is the generic memory management system put inbetween the user's high level code and the OS-level
     6 * memory allocation routines.  This system adds such features as callback routines for memory error events,
     7 * tracing capabilities, and reference counting.
     8 *
     9 * @author Robert Lupton, Princeton University
     10 * @author Robert DeSonia, MHPCC
     11 *
     12 * $Revision: 1.62 $ $Name: not supported by cvs2svn $
     13 * $Date: 2007-01-23 22:47:23 $
     14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1815 */
    1916
     
    2118#define PS_MEMORY_H
    2219
     20/// @addtogroup SysUtils System Utilities
     21/// @{
     22
    2323#include <stdio.h>                     // needed for FILE
    2424#include <pthread.h>                   // we need a mutex to make this stuff thread safe.
    25 
    2625#include "psType.h"
    2726
    28 /** @addtogroup MemoryManagement
    29  *  @{
    30  */
    31 
    3227#define P_PS_MEMMAGIC (psPtr)0xdeadbeef   // Magic number in psMemBlock header
    33 
    34 /**
    35  *  @addtogroup memCallback Memory Callbacks
    36  *
    37  *  Routines dealing with the creating and setting of memory management callback functions.
    38  */
    39 
    40 /**
    41  *  @addtogroup memTracing Memory Tracing
    42  *
    43  *  Routines dealing with memory tracing and corruption checking.
    44  */
    45 
    46 /**
    47  *  @addtogroup memRefCount Reference Count
    48  *
    49  *  Routines dealing with the reference counting of allocated buffers.
    50  */
    5128
    5229/// typedef for memory identification numbers.  Guaranteed to be some variety of integer.
     
    8461 *
    8562 *  @see psMemAllocCallbackSet
    86  *  @ingroup memCallback
    8763 */
    8864typedef psMemId(*psMemAllocCallback) (
     
    9369 *
    9470 *  @see psMemFreeCallbackSet
    95  *  @ingroup memCallback
    9671 */
    9772typedef psMemId(*psMemFreeCallback) (
     
    10479 *
    10580 *  @see psMemProblemCallbackSet
    106  *  @ingroup memCallback
    10781 */
    10882typedef void (*psMemProblemCallback) (
     
    11892 *
    11993 *  @see psMemExhaustedCallbackSet
    120  *  @ingroup memCallback
    12194 */
    12295typedef psPtr (*psMemExhaustedCallback) (
     
    303276 *              blocks above id0 that have not been freed.
    304277 *  @see psAlloc, psFree, psgetMemId, psMemProblemCallbackSet
    305  *  @ingroup memTracing
    306278 */
    307279int psMemCheckLeaks(
     
    317289 *  @return int
    318290 *
    319  *  @ingroup memTracing
    320291 */
    321292int psMemCheckCorruption(
     
    327298 *  @return psReferenceCount
    328299 *
    329  *  @ingroup memRefCount
    330300 */
    331301psReferenceCount psMemGetRefCounter(
     
    337307 *  @return psPtr
    338308 *
    339  *  @ingroup memRefCount
    340309 */
    341310#ifdef DOXYGEN
     
    358327/** Decrement reference counter and return the pointer
    359328 *
    360  *  @ingroup memRefCount
    361329 *
    362330 *  @return psPtr    the pointer deremented in refCount, or NULL if pointer is
     
    381349
    382350/** Set reference counter and return the pointer
    383  *
    384  *  @ingroup memRefCount
    385351 *
    386352 *  @return psPtr    the pointer with refCount set, or NULL if pointer is
     
    411377 *  stack. If any of these checks discover that the memory stack is corrupted,
    412378 *  the psMemProblemCallback is called.
    413  
    414  *  @ingroup memCallback
    415379 *
    416380 *  @return psMemProblemCallback       old psMemProblemCallback function
     
    431395 *  request and try again, limiting the size of the operating buffer.
    432396 *
    433  *  @ingroup memCallback
    434  *
    435397 *  @return psMemExhaustedCallback     old psMemExhaustedCallback function
    436398 */
     
    446408 *  just before memory is returned to the calling function.
    447409 *
    448  *  @ingroup memCallback
    449  *
    450410 *  @return psMemAllocCallback      old psMemAllocCallback function
    451411 */
     
    461421 *  before the memory block is freed.
    462422 *
    463  *  @ingroup memCallback
    464  *
    465423 *  @return psMemFreeCallback          old psMemFreeCallback function
    466424 */
     
    471429/** get next memory ID
    472430 *
    473  *  @ingroup memCallback
    474  *
    475431 *  @return psMemId                 the next memory ID to be used
    476432 */
     
    478434
    479435/** get the last memory ID used
    480  *
    481  *  @ingroup memCallback
    482436 *
    483437 *  @return psMemId                 the last memory ID used
     
    492446 *  just before memory is returned to the calling function.
    493447 *
    494  *  @ingroup memCallback
    495  *
    496448 *  @return psMemId
    497449 *
     
    509461 *  before the memory block is freed.
    510462 *
    511  *  @ingroup memCallback
    512  *
    513463 *  @return psMemId                 the old p_psMemFreeID
    514464 *
     
    530480                  size_t *freelist); ///< memory that's waiting to be recycled
    531481
    532 //@} End of Memory Management Functions
     482/// @} end of SysUtils
    533483
    534484#ifndef DOXYGEN
     
    549499
    550500#endif // #ifndef DOXYGEN
    551 
    552501#endif // #ifndef PS_MEMORY_H
Note: See TracChangeset for help on using the changeset viewer.