mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 18:35:41 +02:00
Run through the thread task queues, although still sequentially
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user