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

Function GDALGetNumThreads

gcore/gdal_thread_pool.cpp:79–84  ·  view source on GitHub ↗

Return the number of threads to use, taking into account the * GDAL_NUM_THREADS configuration option. * * @param nMaxVal Maximum number of threads, or -1 if none * @param bDefaultAllCPUs Whether the default value should be CPLGetNumCPUs() * @param[out] ppszValue Pointer to a string to set the string value used, or * nullptr if not needed. * @param[out] pbOK Pointer to

Source from the content-addressed store, hash-verified

77 * @since 3.13
78 */
79int GDALGetNumThreads(int nMaxVal, bool bDefaultAllCPUs, const char **ppszValue,
80 bool *pbOK)
81{
82 return GDALGetNumThreads(nullptr, nullptr, nMaxVal, bDefaultAllCPUs,
83 ppszValue, pbOK);
84}
85
86/************************************************************************/
87/* GDALGetNumThreads() */

Callers 15

OSM_OpenFunction · 0.85
GetNumCPUsMethod · 0.85
CreateMethod · 0.85
GDALGridContextCreateFunction · 0.85
GWKThreadsCreateFunction · 0.85
InitializeMethod · 0.85
TranslateArrowMethod · 0.85
ComputeStatisticsMethod · 0.85

Calls 6

CSLFetchNameValueFunction · 0.85
CPLGetNumCPUsFunction · 0.85
CPLGetValueTypeFunction · 0.85
minFunction · 0.70
maxFunction · 0.70
EQUALFunction · 0.50

Tested by

no test coverage detected