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

Function CPLGetTLSEx

port/cpl_multiproc.cpp:2283–2293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2281/************************************************************************/
2282
2283void *CPLGetTLSEx(int nIndex, int *pbMemoryErrorOccurred)
2284
2285{
2286 void **l_papTLSList = CPLGetTLSList(pbMemoryErrorOccurred);
2287 if (l_papTLSList == nullptr)
2288 return nullptr;
2289
2290 CPLAssert(nIndex >= 0 && nIndex < CTLS_MAX);
2291
2292 return l_papTLSList[nIndex];
2293}
2294
2295/************************************************************************/
2296/* CPLSetTLS() */

Callers 15

ogr_proj_p.cppFile · 0.85
gdaldataset.cppFile · 0.85
CPLGetErrorContextFunction · 0.85
cpl_vsil_curl.cppFile · 0.85
CPLGetStaticResultFunction · 0.85
VSIGetErrorContextFunction · 0.85
CPLReadLineBufferFunction · 0.85

Calls 1

CPLGetTLSListFunction · 0.85

Tested by

no test coverage detected