Run through the thread task queues, although still sequentially

This commit is contained in:
Eric Fischer
2015-07-09 16:14:24 -07:00
parent 2957f16b4b
commit d55af3b3a6
+7 -11
View File
@@ -899,20 +899,15 @@ int traverse_zooms(int *geomfd, off_t *geom_size, char *metabase, char *stringpo
here->next = *d;
*d = here;
printf("to do: ");
dispatch *a;
for (a = dispatch_head; a != NULL; a = a->next) {
printf("%lld ", a->todo);
}
printf("\n");
}
int thread = 0;
int thread;
for (thread = 0; thread < threads; thread++) {
struct task *task;
for (task = dispatches[thread].tasks; task != NULL; task = task->next) {
int j = task->fileno;
for (j = 0; j < TEMP_FILES; j++) {
if (geomfd[j] < 0) {
// only one source file for zoom level 0
continue;
@@ -960,6 +955,7 @@ int traverse_zooms(int *geomfd, off_t *geom_size, char *metabase, char *stringpo
}
along += geom_size[j];
}
}
for (j = 0; j < TEMP_FILES; j++) {
close(geomfd[j]);