IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7617 for trunk/psLib/src/sys


Ignore:
Timestamp:
Jun 21, 2006, 11:40:12 AM (20 years ago)
Author:
Paul Price
Message:

Applying patch from Josh. Renaming psMemThreadSafety to psMemSetThreadSafety. Adding psMemGetThreadSafety. Using psMemGetThreadSafety in psDB.

Location:
trunk/psLib/src/sys
Files:
2 edited

Legend:

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

    r7414 r7617  
    88*  @author Robert Lupton, Princeton University
    99*
    10 *  @version $Revision: 1.72 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2006-06-07 23:16:44 $
     10*  @version $Revision: 1.73 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2006-06-21 21:40:12 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    10801080}
    10811081
    1082 bool psMemThreadSafety(bool safe)
     1082bool psMemSetThreadSafety(bool safe)
    10831083{
    10841084    bool out = safeThreads;
     
    10871087}
    10881088
     1089bool psMemGetThreadSafety(void)
     1090{
     1091    return safeThreads;
     1092}
     1093
    10891094bool p_psMemGetPersistent(psPtr vptr)
    10901095{
  • trunk/psLib/src/sys/psMemory.h

    r7414 r7617  
    1212 *  @ingroup MemoryManagement
    1313 *
    14  *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-06-07 23:16:44 $
     14 *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-06-21 21:40:12 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    190190 *  @return bool:       The previous value of the thread safety.
    191191 */
    192 bool psMemThreadSafety(
     192bool psMemSetThreadSafety(
    193193    bool safe                          ///< boolean for turning on/off thread safety
    194194);
     195
     196/** Get the current state of thread safety and mutex locking in the memory management.
     197 *
     198 * psMemGetThreadSafety shall return the current state of thread safety in the memory management system.
     199 *
     200 *  @return bool:       The current state of thread safety.
     201 */
     202bool psMemGetThreadSafety(void);
    195203
    196204/** Set the memory as persistent so that it is ignored when detecting memory leaks.
Note: See TracChangeset for help on using the changeset viewer.