fix: add thread safety for cave and river path mutexes

This commit is contained in:
2026-06-21 15:56:58 +08:00
parent 9a7fe1bfe9
commit 790f4a5aa4
8 changed files with 80 additions and 48 deletions

View File

@@ -63,5 +63,5 @@ void CaveCarver::cleanup_finished_caves() {
int CaveCarver::cave_sum() const { return m_paths.size(); }
float& CaveCarver::cave_probability() { return m_cave_probability; }
std::shared_mutex& CaveCarver::path_mutex() { return m_path_mutex; }
} // namespace Cubed