mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
replace boost locks with std
This commit is contained in:
@@ -65,7 +65,7 @@ const char * TypeRegistry::getKeyForType(const std::type_info & type)
|
||||
|
||||
std::type_index typeIndex(type);
|
||||
|
||||
boost::unique_lock<boost::mutex> lock(mutex);
|
||||
std::unique_lock<std::mutex> lock(mutex);
|
||||
|
||||
auto iter = keys.find(typeIndex);
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
private:
|
||||
size_t nextIndex;
|
||||
|
||||
boost::mutex mutex;
|
||||
std::mutex mutex;
|
||||
|
||||
std::map<std::type_index, std::string> keys;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user