1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

synchronize typeCacheChanged() method

This commit is contained in:
Chris Wiebe 2004-11-10 19:51:46 +00:00
parent 7dae0c0ca3
commit ce1679aa17

View file

@ -343,7 +343,7 @@ public class TypeCacheManager implements ITypeCacheChangedListener {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.browser.ITypeCacheChangedListener#typeCacheChanged(org.eclipse.core.resources.IProject)
*/
public void typeCacheChanged(final IProject project) {
public synchronized void typeCacheChanged(final IProject project) {
// clone so that a listener cannot have a side-effect on this list when being notified
ArrayList listeners;
synchronized(fChangeListeners) {