Consolidate code for getting platform details into one place (#311)

Consolidate code for getting platform details into a single place
This commit is contained in:
Ryan Mast
2024-12-09 15:21:50 -08:00
committed by GitHub
parent a8bd7ac723
commit d70e3326da
5 changed files with 85 additions and 43 deletions
+2 -1
View File
@@ -43,6 +43,7 @@
#include "errors.hpp"
#include "geometry.hpp"
#include "thread.hpp"
#include "platform.hpp"
int pk = false;
int pC = false;
@@ -1199,7 +1200,7 @@ int main(int argc, char **argv) {
struct tileset_reader *readers = NULL;
CPUS = sysconf(_SC_NPROCESSORS_ONLN);
CPUS = get_num_avail_cpus();
const char *TIPPECANOE_MAX_THREADS = getenv("TIPPECANOE_MAX_THREADS");
if (TIPPECANOE_MAX_THREADS != NULL) {