Fix global sys cache bug when exit.

This commit is contained in:
totaj
2023-12-12 14:24:50 +08:00
parent 5363b19839
commit 901de26e85

View File

@ -44,6 +44,9 @@ public:
void ResetInitFlag(bool include_shared)
{
for (int cache_id = 0; cache_id < SysCacheSize; cache_id++) {
if (local_systupcaches[cache_id] == NULL) {
continue;
}
if (!include_shared && local_systupcaches[cache_id]->GetCCRelIsShared()) {
continue;
}
@ -73,6 +76,9 @@ public:
void ReleaseGlobalRefcount(bool include_shared)
{
for (int cache_id = 0; cache_id < SysCacheSize; cache_id++) {
if (local_systupcaches[cache_id] == NULL) {
continue;
}
if (!include_shared && local_systupcaches[cache_id]->GetCCRelIsShared()) {
continue;
}