Changeset 4137
- Timestamp:
- Jun 7, 2005, 12:53:40 PM (21 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 4 edited
-
sys/psConfigure.c (modified) (4 diffs)
-
sys/psConfigure.h (modified) (4 diffs)
-
sysUtils/psConfigure.c (modified) (4 diffs)
-
sysUtils/psConfigure.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psConfigure.c
r3264 r4137 1 1 /** @file psConfigure.c 2 2 * 3 * @brief Contains the declarations for initialization, memory finalization, and configuration. 3 * @brief Contains the declarations for initialization, memory finalization, 4 * and configuration. 4 5 * 5 * These functions initalize psLib data before the beginning of a run and remove (finalize) the6 * same data after the run is complete. A function is also provided to return the current7 * 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. 8 9 * 9 10 * @ingroup Configure … … 12 13 * @author Robert DeSonia, MHPCC 13 14 * 14 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 2-17 19:26:24$15 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-06-07 22:53:40 $ 16 17 * 17 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 34 35 void psLibInit(bool predictable, const char* timeConfig) 35 36 { 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 39 39 40 40 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"); 42 43 return; 43 44 } … … 49 50 50 51 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"); 52 54 return; 53 55 } -
trunk/psLib/src/sys/psConfigure.h
r3264 r4137 1 1 /** @file psConfigure.h 2 2 * 3 * @brief Contains the declarations for initialization, memory finalization, and configuration. 3 * @brief Contains the declarations for initialization, memory finalization, 4 * and configuration. 4 5 * 5 * These functions initalize psLib data before the beginning of a run and remove (finalize) the6 * same data after the run is complete. A function is also provided to return the current7 * 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. 8 9 * 9 10 * @ingroup Configure 10 11 * 11 12 * @author Ross Harman, MHPCC 12 * @author George Gusciora, MHPCC13 13 * @author Robert DeSonia, MHPCC 14 14 * 15 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $16 * @date $Date: 2005-0 2-17 19:26:24$15 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-06-07 22:53:40 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 21 21 #ifndef PS_CONFIGURE_H 22 22 #define PS_CONFIGURE_H 23 24 23 25 24 /** @addtogroup Configure … … 39 38 /** Initializes persistent memory. 40 39 * 41 * Creates persistant memory items used throughout psLib. Items created within this method should be freed42 * 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. 43 42 * current, a non-NULL psErr is returned with code PS_ERR_NONE. 44 43 * … … 47 46 void psLibInit( 48 47 bool predictable, 49 const char* timeConfig 48 const char* timeConfig ///< Filename of config file for psTime. 50 49 ); 51 50 52 51 /** Removes persistant memory created with the psLibInit function. 53 52 * 54 * The memory created but not freed by psLib modules should be freed within this55 * 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. 56 55 * 57 56 * @return void: void. -
trunk/psLib/src/sysUtils/psConfigure.c
r3264 r4137 1 1 /** @file psConfigure.c 2 2 * 3 * @brief Contains the declarations for initialization, memory finalization, and configuration. 3 * @brief Contains the declarations for initialization, memory finalization, 4 * and configuration. 4 5 * 5 * These functions initalize psLib data before the beginning of a run and remove (finalize) the6 * same data after the run is complete. A function is also provided to return the current7 * 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. 8 9 * 9 10 * @ingroup Configure … … 12 13 * @author Robert DeSonia, MHPCC 13 14 * 14 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 2-17 19:26:24$15 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-06-07 22:53:40 $ 16 17 * 17 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 34 35 void psLibInit(bool predictable, const char* timeConfig) 35 36 { 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 39 39 40 40 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"); 42 43 return; 43 44 } … … 49 50 50 51 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"); 52 54 return; 53 55 } -
trunk/psLib/src/sysUtils/psConfigure.h
r3264 r4137 1 1 /** @file psConfigure.h 2 2 * 3 * @brief Contains the declarations for initialization, memory finalization, and configuration. 3 * @brief Contains the declarations for initialization, memory finalization, 4 * and configuration. 4 5 * 5 * These functions initalize psLib data before the beginning of a run and remove (finalize) the6 * same data after the run is complete. A function is also provided to return the current7 * 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. 8 9 * 9 10 * @ingroup Configure 10 11 * 11 12 * @author Ross Harman, MHPCC 12 * @author George Gusciora, MHPCC13 13 * @author Robert DeSonia, MHPCC 14 14 * 15 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $16 * @date $Date: 2005-0 2-17 19:26:24$15 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-06-07 22:53:40 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 21 21 #ifndef PS_CONFIGURE_H 22 22 #define PS_CONFIGURE_H 23 24 23 25 24 /** @addtogroup Configure … … 39 38 /** Initializes persistent memory. 40 39 * 41 * Creates persistant memory items used throughout psLib. Items created within this method should be freed42 * 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. 43 42 * current, a non-NULL psErr is returned with code PS_ERR_NONE. 44 43 * … … 47 46 void psLibInit( 48 47 bool predictable, 49 const char* timeConfig 48 const char* timeConfig ///< Filename of config file for psTime. 50 49 ); 51 50 52 51 /** Removes persistant memory created with the psLibInit function. 53 52 * 54 * The memory created but not freed by psLib modules should be freed within this55 * 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. 56 55 * 57 56 * @return void: void.
Note:
See TracChangeset
for help on using the changeset viewer.
