Changeset 10894 for branches/jch-memory/psLib/src/sys/psMemory.c
- Timestamp:
- Jan 3, 2007, 12:04:42 PM (19 years ago)
- File:
-
- 1 edited
-
branches/jch-memory/psLib/src/sys/psMemory.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/jch-memory/psLib/src/sys/psMemory.c
r10893 r10894 8 8 * @author Robert Lupton, Princeton University 9 9 * 10 * @version $Revision: 1.88.2. 6$ $Name: not supported by cvs2svn $11 * @date $Date: 2007-01-03 2 1:55:11$10 * @version $Revision: 1.88.2.7 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2007-01-03 22:04:42 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 305 305 psBool failure = false; 306 306 307 // get exclusive access to the memBlock list to avoid it changing on us while we use it. 308 // MUTEX_LOCK(&memBlockListMutex); 307 // get exclusive access to the memBlock list to avoid it changing on us 308 // while we use it. 309 MUTEX_LOCK(&memBlockListMutex); 309 310 310 311 for (psMemBlock* iter = lastMemBlockAllocated; iter != NULL; iter = iter->nextBlock) { 311 MUTEX_UNLOCK(&memBlockListMutex); 312 failure = checkMemBlock(iter, __func__); 313 MUTEX_LOCK(&memBlockListMutex); 314 if ( failure ) { 312 if (checkMemBlock(iter, __func__)) { 315 313 nbad++; 316 314
Note:
See TracChangeset
for help on using the changeset viewer.
