Changeset 21477 for trunk/ppStack/src/ppStackThread.c
- Timestamp:
- Feb 13, 2009, 1:53:56 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackThread.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackThread.c
r21377 r21477 49 49 ppStackThreadData *ppStackThreadDataSetup(const psArray *cells, const psArray *imageNames, 50 50 const psArray *maskNames, const psArray *varianceNames, 51 const p mConfig *config)51 const psArray *covariances, const pmConfig *config) 52 52 { 53 53 PS_ASSERT_ARRAY_NON_NULL(cells, NULL); … … 55 55 PS_ASSERT_ARRAYS_SIZE_EQUAL(cells, maskNames, NULL); 56 56 PS_ASSERT_ARRAYS_SIZE_EQUAL(cells, varianceNames, NULL); 57 PS_ASSERT_ARRAYS_SIZE_EQUAL(cells, covariances, NULL); 57 58 58 59 ppStackThreadData *stack = psAlloc(sizeof(ppStackThreadData)); // Thread data, to return … … 98 99 continue; 99 100 } 100 readouts->data[j] = pmReadoutAlloc(cell); 101 pmReadout *ro = pmReadoutAlloc(cell); // Readout for thread 102 ro->covariance = psMemIncrRefCounter(covariances->data[j]); 103 readouts->data[j] = ro; 101 104 } 102 105 threads->data[i] = ppStackThreadAlloc(readouts); … … 236 239 237 240 { 238 psThreadTask *task = psThreadTaskAlloc("PPSTACK_INITIAL_COMBINE", 7);241 psThreadTask *task = psThreadTaskAlloc("PPSTACK_INITIAL_COMBINE", 6); 239 242 task->function = &ppStackReadoutInitialThread; 240 243 psThreadTaskAdd(task); … … 250 253 251 254 { 252 psThreadTask *task = psThreadTaskAlloc("PPSTACK_FINAL_COMBINE", 5);255 psThreadTask *task = psThreadTaskAlloc("PPSTACK_FINAL_COMBINE", 7); 253 256 task->function = &ppStackReadoutFinalThread; 254 257 psThreadTaskAdd(task);
Note:
See TracChangeset
for help on using the changeset viewer.
