Add back mutex

This commit is contained in:
Thomas Krijnen
2026-05-08 10:07:34 +02:00
parent 6ad5fbb27e
commit a1efdccb4b
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -2872,6 +2872,7 @@ void ifcopenshell::file::unbatch() {
void ifcopenshell::file::reset_identity_cache() {
std::visit([](auto& x) {
if constexpr (std::is_same_v<std::decay_t<decltype(x)>, impl::rocks_db_file_storage>) {
std::lock_guard<std::mutex> lock(x.instance_cache_mutex_);
x.instance_cache_.clear();
x.type_instance_cache_.clear();
}