BugFix Safe access to xmldoc in snapshots and undo history

Added mutex to Action manager for access to undo history and added mutex to session's snapshots. Lock and unlock those mutex for all write access and long read access.
This commit is contained in:
Bruno Herbelin
2024-10-08 19:05:52 +02:00
parent 2de9ca144d
commit f8981248dc
6 changed files with 76 additions and 47 deletions

View File

@@ -2,7 +2,6 @@
#define SESSION_H
#include <mutex>
#include <variant>
#include "SourceList.h"
#include "RenderView.h"
@@ -34,6 +33,7 @@ struct SessionSnapshots {
tinyxml2::XMLDocument *xmlDoc_;
std::list<uint64_t> keys_;
std::mutex access_;
};
class Session