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:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user