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

Function pj_clear_initcache

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

Source from the content-addressed store, hash-verified

74/************************************************************************/
75
76void pj_clear_initcache()
77{
78 if( cache_alloc > 0 )
79 {
80 int i;
81
82 pj_acquire_lock();
83
84 for( i = 0; i < cache_count; i++ )
85 {
86 paralist *n, *t = cache_paralist[i];
87
88 free( cache_key[i] );
89
90 /* free parameter list elements */
91 for (; t != nullptr; t = n) {
92 n = t->next;
93 free(t);
94 }
95 }
96
97 free( cache_key );
98 free( cache_paralist );
99 cache_count = 0;
100 cache_alloc= 0;
101 cache_key = nullptr;
102 cache_paralist = nullptr;
103
104 pj_release_lock();
105 }
106}
107
108/************************************************************************/
109/* pj_search_initcache() */

Callers 1

proj_cleanupFunction · 0.85

Calls 2

pj_acquire_lockFunction · 0.85
pj_release_lockFunction · 0.85

Tested by

no test coverage detected