Changeset 35687 for trunk/ppMerge/src
- Timestamp:
- Jun 20, 2013, 1:06:55 PM (13 years ago)
- Location:
- trunk/ppMerge/src
- Files:
-
- 2 edited
-
ppMergeLoop.c (modified) (1 diff)
-
ppMergeReadChunk.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeLoop.c
r33666 r35687 355 355 // call: pmDarkCombine(outCell, fileGroup->readouts, iter, rej, maskVal); 356 356 if (!psThreadJobAddPending(job)) { 357 goto ERROR; 357 // goto ERROR; 358 // continue; // I don't care. 358 359 } 359 360 break; -
trunk/ppMerge/src/ppMergeReadChunk.c
r24798 r35687 24 24 "INPUTS.VARIANCES");// Do we have variances? 25 25 int rows = psMetadataLookupS32(NULL, config->arguments, "ROWS"); // Number of rows to read per chunk 26 26 int rejectedInputs = 0; 27 27 // select an available fileGroup 28 28 while (1) { … … 73 73 psWarning ("skipping video cell (1: %ld)", (long) pthread_self()); 74 74 inRO->process = false; 75 rejectedInputs++; 75 76 continue; 76 77 } … … 86 87 psWarning ("skipping video cell (2: %ld)", (long) pthread_self()); 87 88 inRO->process = false; 89 rejectedInputs++; 88 90 continue; 89 91 } … … 94 96 psWarning ("skipping video cell (3: %ld)", (long) pthread_self()); 95 97 inRO->process = false; 98 rejectedInputs++; 96 99 continue; 97 100 } … … 119 122 } 120 123 } 121 124 122 125 // fprintf (stderr, "%lx, %lx, %lx\n", (long int) inRO->image, (long int) inRO->mask, (long int) inRO->variance); 123 124 if (!keepReading) { 125 return NULL; 126 } 126 if (!keepReading) { 127 return NULL; 128 } 129 130 127 131 } 128 132 psLogMsg("ppMerge",PS_LOG_INFO,"%d %ld %d %d %d", 133 j,readouts->n,rejectedInputs,fileGroup->read,fileGroup->busy); 134 if (rejectedInputs >= readouts->n) { 135 fileGroup->read = false; 136 fileGroup->busy = false; 137 return NULL; 138 } 139 129 140 fileGroup->read = fileGroup->busy = true; 130 141 return fileGroup;
Note:
See TracChangeset
for help on using the changeset viewer.
