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:
parent
7dae0c0ca3
commit
ce1679aa17
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ public class TypeCacheManager implements ITypeCacheChangedListener {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.core.browser.ITypeCacheChangedListener#typeCacheChanged(org.eclipse.core.resources.IProject)
|
* @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
|
// clone so that a listener cannot have a side-effect on this list when being notified
|
||||||
ArrayList listeners;
|
ArrayList listeners;
|
||||||
synchronized(fChangeListeners) {
|
synchronized(fChangeListeners) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue