We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 789146f commit b8c8223Copy full SHA for b8c8223
1 file changed
src/export_cache.cpp
@@ -167,6 +167,7 @@ static void pypluginCache_free(cache_t* cache) {
167
if (!cache) {
168
return;
169
}
170
+ py::gil_scoped_acquire acquire;
171
if (!cache->eviction_params) {
172
// No params, just free the cache structure
173
cache_struct_free(cache);
@@ -183,8 +184,8 @@ static void pypluginCache_free(cache_t* cache) {
183
184
185
186
static bool pypluginCache_get(cache_t* cache, const request_t* req) {
- py::gil_scoped_acquire acquire;
187
bool hit = cache_get_base(cache, req);
188
189
pypluginCache_params_t* params =
190
(pypluginCache_params_t*)cache->eviction_params;
191
0 commit comments