Add an option to run mostly synchronously for profiling

This commit is contained in:
Erica Fischer
2022-09-13 13:00:14 -07:00
parent 8e46650da7
commit b3fea7c172
7 changed files with 31 additions and 10 deletions
+2 -2
View File
@@ -302,7 +302,7 @@ void fgbRunQueue() {
}
for (size_t i = 0; i < CPUS; i++) {
if (pthread_create(&pthreads[i], NULL, fgb_run_parse_feature, &qra[i]) != 0) {
if (pthread_create_wrap(&pthreads[i], NULL, fgb_run_parse_feature, &qra[i]) != 0) {
perror("pthread_create");
exit(EXIT_FAILURE);
}
@@ -396,4 +396,4 @@ void parse_flatgeobuf(std::vector<struct serialization_state> *sst, const char *
}
fgbRunQueue();
}
}