MCPcopy Create free account
hub / github.com/Kitware/VTK / pj_search_initcache

Function pj_search_initcache

ThirdParty/libproj/vtklibproj/src/initcache.cpp:114–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112/************************************************************************/
113
114paralist *pj_search_initcache( const char *filekey )
115
116{
117 int i;
118 paralist *result = nullptr;
119
120 pj_acquire_lock();
121
122 for( i = 0; result == nullptr && i < cache_count; i++)
123 {
124 if( strcmp(filekey,cache_key[i]) == 0 )
125 {
126 result = pj_clone_paralist( cache_paralist[i] );
127 }
128 }
129
130 pj_release_lock();
131
132 return result;
133}
134
135/************************************************************************/
136/* 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