Changeset 21347 for trunk/psLib/src/mathtypes
- Timestamp:
- Feb 5, 2009, 3:05:58 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/mathtypes/psImage.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r20547 r21347 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.13 2$ $Name: not supported by cvs2svn $12 * @date $Date: 200 8-11-05 11:12:39$11 * @version $Revision: 1.133 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2009-02-06 01:05:58 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 24 24 #include <math.h> 25 25 #include <unistd.h> 26 #include <errno.h> 26 27 27 28 #include "psMemory.h" … … 29 30 #include "psAssert.h" 30 31 #include "psAbort.h" 32 #include "psTrace.h" 31 33 32 34 #include "psImage.h" … … 53 55 54 56 // drop my entry on my parent's array of children 57 // lock parent before freeing child : psArrayRemoveDataNoFree is NOT thread safe 58 psMutexLock (parent); 55 59 psArrayRemoveDataNoFree (parent->children, image); 60 psMutexUnlock (parent); 56 61 57 62 // drop my reference to my parent … … 66 71 } 67 72 73 psMutexDestroy(image); 68 74 psFree(image->children); 69 75 psFree(image->p_rawDataBuffer); … … 122 128 image->parent = NULL; 123 129 image->children = NULL; 130 131 // XXX for now, we will add a mutex to all images. in the future, allow images to be 132 // threaded or unthreaded independently? 133 psMutexInit (image); 124 134 125 135 return image;
Note:
See TracChangeset
for help on using the changeset viewer.
