Changeset 23341 for trunk/ppStack/src/ppStackThread.c
- Timestamp:
- Mar 17, 2009, 10:00:02 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackThread.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackThread.c
r23190 r23341 9 9 10 10 #include "ppStack.h" 11 #include "ppStackOptions.h" 12 #include "ppStackThread.h" 13 11 14 12 15 #define THREAD_WAIT 10000 // Microseconds to wait if thread is not available … … 53 56 } 54 57 55 ppStackThreadData *ppStackThreadDataSetup(const psArray *cells, const psArray *imageNames, 56 const psArray *maskNames, const psArray *varianceNames, 57 const psArray *covariances, const pmConfig *config) 58 { 58 ppStackThreadData *ppStackThreadDataSetup(const ppStackOptions *options, const pmConfig *config) 59 { 60 psAssert(options, "Require options"); 61 psAssert(config, "Require configuration"); 62 63 const psArray *cells = options->cells; // Array of input cells 64 const psArray *imageNames = options->imageNames; // Names of images to read 65 const psArray *maskNames = options->maskNames; // Names of masks to read 66 const psArray *varianceNames = options->varianceNames; // Names of variance maps to read 67 const psArray *covariances = options->covariances; // Covariance matrices (already read) 68 59 69 PS_ASSERT_ARRAY_NON_NULL(cells, NULL); 60 70 PS_ASSERT_ARRAYS_SIZE_EQUAL(cells, imageNames, NULL); … … 245 255 246 256 { 247 psThreadTask *task = psThreadTaskAlloc("PPSTACK_INITIAL_COMBINE", 6);257 psThreadTask *task = psThreadTaskAlloc("PPSTACK_INITIAL_COMBINE", 3); 248 258 task->function = &ppStackReadoutInitialThread; 249 259 psThreadTaskAdd(task); … … 259 269 260 270 { 261 psThreadTask *task = psThreadTaskAlloc("PPSTACK_FINAL_COMBINE", 7);271 psThreadTask *task = psThreadTaskAlloc("PPSTACK_FINAL_COMBINE", 3); 262 272 task->function = &ppStackReadoutFinalThread; 263 273 psThreadTaskAdd(task);
Note:
See TracChangeset
for help on using the changeset viewer.
