MCPcopy Create free account
hub / github.com/OSGeo/PROJ / pj_search_initcache

Function pj_search_initcache

src/initcache.cpp:109–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107/************************************************************************/
108
109paralist *pj_search_initcache(const char *filekey)
110
111{
112 int i;
113 paralist *result = nullptr;
114
115 pj_acquire_lock();
116
117 for (i = 0; result == nullptr && i < cache_count; i++) {
118 if (strcmp(filekey, cache_key[i]) == 0) {
119 result = pj_clone_paralist(cache_paralist[i]);
120 }
121 }
122
123 pj_release_lock();
124
125 return result;
126}
127
128/************************************************************************/
129/* pj_insert_initcache() */

Callers 1

get_initFunction · 0.85

Calls 3

pj_acquire_lockFunction · 0.85
pj_clone_paralistFunction · 0.85
pj_release_lockFunction · 0.85

Tested by

no test coverage detected