| 94 | /************************************************************************/ |
| 95 | |
| 96 | static int GetThresholdMinThreadsForSpawn() |
| 97 | { |
| 98 | // Minimum number of threads for automatic switch to spawning |
| 99 | constexpr int THRESHOLD_MIN_THREADS_FOR_SPAWN = 8; |
| 100 | |
| 101 | // Config option for test only |
| 102 | return std::max(1, atoi(CPLGetConfigOption( |
| 103 | "GDAL_THRESHOLD_MIN_THREADS_FOR_SPAWN", |
| 104 | CPLSPrintf("%d", THRESHOLD_MIN_THREADS_FOR_SPAWN)))); |
| 105 | } |
| 106 | |
| 107 | /************************************************************************/ |
| 108 | /* GetThresholdMinTilesPerJob() */ |
no test coverage detected