Changeset 7617 for trunk/psLib/src/sys
- Timestamp:
- Jun 21, 2006, 11:40:12 AM (20 years ago)
- Location:
- trunk/psLib/src/sys
- Files:
-
- 2 edited
-
psMemory.c (modified) (3 diffs)
-
psMemory.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psMemory.c
r7414 r7617 8 8 * @author Robert Lupton, Princeton University 9 9 * 10 * @version $Revision: 1.7 2$ $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 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1080 1080 } 1081 1081 1082 bool psMem ThreadSafety(bool safe)1082 bool psMemSetThreadSafety(bool safe) 1083 1083 { 1084 1084 bool out = safeThreads; … … 1087 1087 } 1088 1088 1089 bool psMemGetThreadSafety(void) 1090 { 1091 return safeThreads; 1092 } 1093 1089 1094 bool p_psMemGetPersistent(psPtr vptr) 1090 1095 { -
trunk/psLib/src/sys/psMemory.h
r7414 r7617 12 12 * @ingroup MemoryManagement 13 13 * 14 * @version $Revision: 1.5 5$ $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 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 190 190 * @return bool: The previous value of the thread safety. 191 191 */ 192 bool psMem ThreadSafety(192 bool psMemSetThreadSafety( 193 193 bool safe ///< boolean for turning on/off thread safety 194 194 ); 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 */ 202 bool psMemGetThreadSafety(void); 195 203 196 204 /** Set the memory as persistent so that it is ignored when detecting memory leaks.
Note:
See TracChangeset
for help on using the changeset viewer.
