1
0
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:
Laserlicht
2025-02-28 15:25:58 +01:00
parent 3fb9260f3b
commit 7dfb499edf
44 changed files with 148 additions and 147 deletions

View File

@@ -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);

View File

@@ -99,7 +99,7 @@ public:
private:
size_t nextIndex;
boost::mutex mutex;
std::mutex mutex;
std::map<std::type_index, std::string> keys;