- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psLib/src/imageops/psImageCovariance.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psLib/src/imageops/psImageCovariance.c
r30595 r33415 177 177 if (threaded) { 178 178 psThreadJob *job = psThreadJobAlloc("PSLIB_IMAGE_COVARIANCE_CALCULATE"); 179 psArrayAdd(job->args, 1, out);180 psArrayAdd(job->args, 1, covar);181 psArrayAdd(job->args, 1, (psKernel*)kernel); // Casting away const179 psArrayAdd(job->args, 0, out); 180 psArrayAdd(job->args, 0, covar); 181 psArrayAdd(job->args, 0, (psKernel*)kernel); // Casting away const 182 182 PS_ARRAY_ADD_SCALAR(job->args, x, PS_TYPE_S32); 183 183 PS_ARRAY_ADD_SCALAR(job->args, y, PS_TYPE_S32); … … 193 193 } 194 194 195 if (threaded && !psThreadPoolWait(true )) {195 if (threaded && !psThreadPoolWait(true, true)) { 196 196 psError(PS_ERR_UNKNOWN, false, "Error waiting for threads."); 197 197 return false; … … 345 345 if (threaded) { 346 346 psThreadJob *job = psThreadJobAlloc("PSLIB_IMAGE_COVARIANCE_BIN"); 347 psArrayAdd(job->args, 1, out);348 psArrayAdd(job->args, 1, covar);347 psArrayAdd(job->args, 0, out); 348 psArrayAdd(job->args, 0, covar); 349 349 PS_ARRAY_ADD_SCALAR(job->args, bin, PS_TYPE_S32); 350 350 PS_ARRAY_ADD_SCALAR(job->args, binVal, PS_TYPE_F32); … … 360 360 } 361 361 } 362 if (threaded && !psThreadPoolWait(true )) {362 if (threaded && !psThreadPoolWait(true, true)) { 363 363 psError(PS_ERR_UNKNOWN, false, "Error waiting for threads."); 364 364 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
