1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

shared_mutex replace boost

This commit is contained in:
Laserlicht
2025-02-28 16:01:11 +01:00
parent 41a4ea1163
commit 4e73f7d90f
10 changed files with 32 additions and 32 deletions

View File

@@ -64,7 +64,7 @@ protected:
mutable std::recursive_mutex externalAccessMutex; //Used to communicate between Modificators
using RecursiveLock = std::unique_lock<std::recursive_mutex>;
using Lock = std::unique_lock<boost::shared_mutex>;
using Lock = std::unique_lock<std::shared_mutex>;
private:
virtual void process() = 0;
@@ -73,7 +73,7 @@ private:
std::list<Modificator*> preceeders; //must be ordered container
mutable boost::shared_mutex mx; //Used only for task scheduling
mutable std::shared_mutex mx; //Used only for task scheduling
void dump();
};