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

Function CPLGetThreadLocalConfigOptions

port/cpl_conv.cpp:2218–2226  ·  view source on GitHub ↗

* Return the list of thread local configuration options as KEY=VALUE pairs. * * Options that through environment variables or with * CPLSetConfigOption() will *not* be listed. * * @return a copy of the list, to be freed with CSLDestroy(). */

Source from the content-addressed store, hash-verified

2216 * @return a copy of the list, to be freed with CSLDestroy().
2217 */
2218char **CPLGetThreadLocalConfigOptions(void)
2219{
2220 int bMemoryError = FALSE;
2221 char **papszTLConfigOptions = reinterpret_cast<char **>(
2222 CPLGetTLSEx(CTLS_CONFIGOPTIONS, &bMemoryError));
2223 if (bMemoryError)
2224 return nullptr;
2225 return CSLDuplicate(papszTLConfigOptions);
2226}
2227
2228/************************************************************************/
2229/* CPLSetThreadLocalConfigOptions() */

Callers 3

TEST_FFunction · 0.85
GDALThreadSafeDatasetMethod · 0.85
RefUnderlyingDatasetMethod · 0.85

Calls 2

CPLGetTLSExFunction · 0.85
CSLDuplicateFunction · 0.85

Tested by 1

TEST_FFunction · 0.68