1 #ifndef OSMIUM_UTIL_CONFIG_HPP 2 #define OSMIUM_UTIL_CONFIG_HPP 41 # define strcasecmp _stricmp 49 const char* env = getenv(
"OSMIUM_POOL_THREADS");
51 return std::atoi(env);
57 const char* env = getenv(
"OSMIUM_USE_POOL_THREADS_FOR_PBF_PARSING");
59 if (!strcasecmp(env,
"off") ||
60 !strcasecmp(env,
"false") ||
61 !strcasecmp(env,
"no") ||
62 !strcasecmp(env,
"0")) {
70 std::string name{
"OSMIUM_MAX_"};
72 name +=
"_QUEUE_SIZE";
73 const char* env = getenv(name.c_str());
75 auto value = std::atoi(env);
76 return value == 0 ? default_value : value;
85 #endif // OSMIUM_UTIL_CONFIG_HPP bool use_pool_threads_for_pbf_parsing() noexcept
Definition: config.hpp:56
int get_pool_threads() noexcept
Definition: config.hpp:48
Namespace for everything in the Osmium library.
Definition: assembler.hpp:63
size_t get_max_queue_size(const char *queue_name, size_t default_value) noexcept
Definition: config.hpp:69