1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-10 18:51:05 +00:00

Cache getTextureDirs()

This commit is contained in:
sfan5 2025-08-08 11:40:12 +02:00
parent 0b9ae73369
commit 55cca34ee9
7 changed files with 37 additions and 59 deletions

View file

@ -105,7 +105,11 @@ public:
return result;
}
void clear() { m_values.clear(); }
void clear()
{
MutexAutoLock lock(m_mutex);
m_values.clear();
}
private:
std::map<Key, Value> m_values;