mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
deleteChildrenAsync() spawns a std::thread that deletes old RimFileSummaryCase objects concurrently with the OpenMP parallel loop in loadFileSummaryCaseData(). #pragma omp critical only synchronizes OMP threads, not std::threads, so OPM/HDF5 library state was accessed simultaneously from both, causing crashes. Replace with clearWithoutDelete() + synchronous delete to preserve the observer signal disconnection fix from #12262 while eliminating the thread race.