IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4137


Ignore:
Timestamp:
Jun 7, 2005, 12:53:40 PM (21 years ago)
Author:
gusciora
Message:

Removed code that freed data structures that were declared static for
performance reasons. This issue will be addressed later.

Location:
trunk/psLib/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psConfigure.c

    r3264 r4137  
    11/** @file  psConfigure.c
    22 *
    3  *  @brief Contains the declarations for initialization, memory finalization, and configuration.
     3 *  @brief Contains the declarations for initialization, memory finalization,
     4 *   and configuration.
    45 *
    5  *  These functions initalize psLib data before the beginning of a run and remove (finalize) the
    6  *  same data after the run is complete. A function is also provided to return the current
    7  *  psLib version.
     6 *  These functions initalize psLib data before the beginning of a run and
     7 *  remove (finalize) the same data after the run is complete. A function is
     8 *  also provided to return the current psLib version.
    89 *
    910 *  @ingroup Configure
     
    1213 *  @author Robert DeSonia, MHPCC
    1314 *
    14  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-02-17 19:26:24 $
     15 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2005-06-07 22:53:40 $
    1617 *
    1718 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3435void psLibInit(bool predictable, const char* timeConfig)
    3536{
    36     // Still needs error codes to be set
    37     // Still needs random number generator initialization
    38     // Please code me, Robert and George.
     37    // XXX: Still needs error codes to be set
     38    // XXX: Still needs random number generator initialization
    3939
    4040    if(!p_psTimeInit(timeConfig)) {
    41         psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psConfigure_INITIALIZATION_FAILED, "psTime");
     41        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     42                PS_ERRORTEXT_psConfigure_INITIALIZATION_FAILED, "psTime");
    4243        return;
    4344    }
     
    4950
    5051    if(!p_psTimeFinalize()) {
    51         psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psConfigure_FINALIZATION_FAILED, "psTime");
     52        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     53                PS_ERRORTEXT_psConfigure_FINALIZATION_FAILED, "psTime");
    5254        return;
    5355    }
  • trunk/psLib/src/sys/psConfigure.h

    r3264 r4137  
    11/** @file  psConfigure.h
    22 *
    3  *  @brief Contains the declarations for initialization, memory finalization, and configuration.
     3 *  @brief Contains the declarations for initialization, memory finalization,
     4 *   and configuration.
    45 *
    5  *  These functions initalize psLib data before the beginning of a run and remove (finalize) the
    6  *  same data after the run is complete. A function is also provided to return the current
    7  *  psLib version.
     6 *  These functions initalize psLib data before the beginning of a run and
     7 *  remove (finalize) the same data after the run is complete.  A function is
     8 *  also provided to return the current psLib version.
    89 *
    910 *  @ingroup Configure
    1011 *
    1112 *  @author Ross Harman, MHPCC
    12  *  @author George Gusciora, MHPCC
    1313 *  @author Robert DeSonia, MHPCC
    1414 *
    15  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2005-02-17 19:26:24 $
     15 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2005-06-07 22:53:40 $
    1717 *
    1818 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2121#ifndef PS_CONFIGURE_H
    2222#define PS_CONFIGURE_H
    23 
    2423
    2524/** @addtogroup Configure
     
    3938/** Initializes persistent memory.
    4039 *
    41  *  Creates persistant memory items used throughout psLib. Items created within this method should be freed
    42  *  with the psLibFinalize function.
     40 *  Creates persistant memory items used throughout psLib. Items created
     41 *  within this method should be freed with the psLibFinalize function.
    4342 *  current, a non-NULL psErr is returned with code PS_ERR_NONE.
    4443 *
     
    4746void psLibInit(
    4847    bool predictable,
    49     const char* timeConfig
     48    const char* timeConfig           ///< Filename of config file for psTime.
    5049);
    5150
    5251/** Removes persistant memory created with the psLibInit function.
    5352 *
    54  *  The memory created but not freed by psLib modules should be freed within this
    55  *  function at the end of a psLib execution cycle.
     53 *  The memory created but not freed by psLib modules should be freed
     54 *  within this function at the end of a psLib execution cycle.
    5655 *
    5756 *  @return void: void.
  • trunk/psLib/src/sysUtils/psConfigure.c

    r3264 r4137  
    11/** @file  psConfigure.c
    22 *
    3  *  @brief Contains the declarations for initialization, memory finalization, and configuration.
     3 *  @brief Contains the declarations for initialization, memory finalization,
     4 *   and configuration.
    45 *
    5  *  These functions initalize psLib data before the beginning of a run and remove (finalize) the
    6  *  same data after the run is complete. A function is also provided to return the current
    7  *  psLib version.
     6 *  These functions initalize psLib data before the beginning of a run and
     7 *  remove (finalize) the same data after the run is complete. A function is
     8 *  also provided to return the current psLib version.
    89 *
    910 *  @ingroup Configure
     
    1213 *  @author Robert DeSonia, MHPCC
    1314 *
    14  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-02-17 19:26:24 $
     15 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2005-06-07 22:53:40 $
    1617 *
    1718 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3435void psLibInit(bool predictable, const char* timeConfig)
    3536{
    36     // Still needs error codes to be set
    37     // Still needs random number generator initialization
    38     // Please code me, Robert and George.
     37    // XXX: Still needs error codes to be set
     38    // XXX: Still needs random number generator initialization
    3939
    4040    if(!p_psTimeInit(timeConfig)) {
    41         psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psConfigure_INITIALIZATION_FAILED, "psTime");
     41        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     42                PS_ERRORTEXT_psConfigure_INITIALIZATION_FAILED, "psTime");
    4243        return;
    4344    }
     
    4950
    5051    if(!p_psTimeFinalize()) {
    51         psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psConfigure_FINALIZATION_FAILED, "psTime");
     52        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     53                PS_ERRORTEXT_psConfigure_FINALIZATION_FAILED, "psTime");
    5254        return;
    5355    }
  • trunk/psLib/src/sysUtils/psConfigure.h

    r3264 r4137  
    11/** @file  psConfigure.h
    22 *
    3  *  @brief Contains the declarations for initialization, memory finalization, and configuration.
     3 *  @brief Contains the declarations for initialization, memory finalization,
     4 *   and configuration.
    45 *
    5  *  These functions initalize psLib data before the beginning of a run and remove (finalize) the
    6  *  same data after the run is complete. A function is also provided to return the current
    7  *  psLib version.
     6 *  These functions initalize psLib data before the beginning of a run and
     7 *  remove (finalize) the same data after the run is complete.  A function is
     8 *  also provided to return the current psLib version.
    89 *
    910 *  @ingroup Configure
    1011 *
    1112 *  @author Ross Harman, MHPCC
    12  *  @author George Gusciora, MHPCC
    1313 *  @author Robert DeSonia, MHPCC
    1414 *
    15  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2005-02-17 19:26:24 $
     15 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2005-06-07 22:53:40 $
    1717 *
    1818 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2121#ifndef PS_CONFIGURE_H
    2222#define PS_CONFIGURE_H
    23 
    2423
    2524/** @addtogroup Configure
     
    3938/** Initializes persistent memory.
    4039 *
    41  *  Creates persistant memory items used throughout psLib. Items created within this method should be freed
    42  *  with the psLibFinalize function.
     40 *  Creates persistant memory items used throughout psLib. Items created
     41 *  within this method should be freed with the psLibFinalize function.
    4342 *  current, a non-NULL psErr is returned with code PS_ERR_NONE.
    4443 *
     
    4746void psLibInit(
    4847    bool predictable,
    49     const char* timeConfig
     48    const char* timeConfig           ///< Filename of config file for psTime.
    5049);
    5150
    5251/** Removes persistant memory created with the psLibInit function.
    5352 *
    54  *  The memory created but not freed by psLib modules should be freed within this
    55  *  function at the end of a psLib execution cycle.
     53 *  The memory created but not freed by psLib modules should be freed
     54 *  within this function at the end of a psLib execution cycle.
    5655 *
    5756 *  @return void: void.
Note: See TracChangeset for help on using the changeset viewer.