| 2281 | /************************************************************************/ |
| 2282 | |
| 2283 | void *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() */ |
no test coverage detected