MCPcopy Create free account
hub / github.com/OSGeo/gdal / GetThresholdMinThreadsForSpawn

Function GetThresholdMinThreadsForSpawn

apps/gdalalg_raster_tile.cpp:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94/************************************************************************/
95
96static 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() */

Callers 2

RunStepMethod · 0.85

Calls 2

CPLSPrintfFunction · 0.85
maxFunction · 0.50

Tested by

no test coverage detected