AssetManager ImplHandler: synchronized access in clearCache()
This commit is contained in:
parent
a7765cfb63
commit
ca497f458a
@ -204,8 +204,10 @@ public class ImplHandler {
|
||||
|
||||
public void clearCache(){
|
||||
// The iterator of the values collection is thread safe
|
||||
for (AssetCache cache : classToCacheMap.values()){
|
||||
cache.clearCache();
|
||||
synchronized (classToCacheMap) {
|
||||
for (AssetCache cache : classToCacheMap.values()){
|
||||
cache.clearCache();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user