13#ifndef GDAL_THREAD_POOL_H
14#define GDAL_THREAD_POOL_H
19const int GDAL_DEFAULT_MAX_THREAD_COUNT = 1024;
25void GDALDestroyGlobalThreadPool();
27int CPL_DLL GDALGetNumThreads(
int nMaxVal = -1,
bool bDefaultAllCPUs =
false,
28 const char **ppszValue =
nullptr,
29 bool *pbOK =
nullptr);
31int CPL_DLL GDALGetNumThreads(
const char *pszNumThreads,
int nMaxVal = -1,
32 bool bDefaultAllCPUs =
false,
33 const char **ppszValue =
nullptr,
34 bool *pbOK =
nullptr);
37 const char *pszItemName =
"NUM_THREADS",
38 int nMaxVal = -1,
bool bDefaultAllCPUs =
false,
39 const char **ppszValue =
nullptr,
40 bool *pbOK =
nullptr);
Pool of worker threads.
Definition cpl_worker_thread_pool.h:64
Core portability definitions for CPL.
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition cpl_port.h:1252