Changeset 1821 for trunk/psLib/src/sys/psMemory.c
- Timestamp:
- Sep 16, 2004, 1:51:07 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psMemory.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psMemory.c
r1810 r1821 8 8 * @author Robert Lupton, Princeton University 9 9 * 10 * @version $Revision: 1.3 8$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-09-1 4 23:48:25$10 * @version $Revision: 1.39 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-09-16 23:51:07 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 261 261 { 262 262 int nbad = 0; // number of bad blocks 263 bool failure = false; 263 264 264 265 // get exclusive access to the memBlock list to avoid it changing on us while we use it. 265 pthread_mutex_lock(&memBlockListMutex);266 // pthread_mutex_lock(&memBlockListMutex); 266 267 267 268 for (psMemBlock* iter = lastMemBlockAllocated; iter != NULL; iter = iter->nextBlock) { 268 if (checkMemBlock(iter, __func__)) { 269 pthread_mutex_unlock(&memBlockListMutex); 270 failure = checkMemBlock(iter, __func__); 271 pthread_mutex_lock(&memBlockListMutex); 272 if ( failure ) { 269 273 nbad++; 270 274
Note:
See TracChangeset
for help on using the changeset viewer.
