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:
parent
0b9ae73369
commit
55cca34ee9
7 changed files with 37 additions and 59 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue