1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

fix some race conditions on the CModelManager.

Not need to synch, the list itself is synchronized.
This commit is contained in:
Alain Magloire 2004-05-11 17:31:03 +00:00
parent 6db86e2257
commit b700118b1f

View file

@ -650,7 +650,7 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
* Model. Deltas created as translations of <code>IResourceDeltas</code>
* are to be registered with <code>#registerResourceDelta</code>.
*/
public synchronized void registerCModelDelta(ICElementDelta delta) {
public void registerCModelDelta(ICElementDelta delta) {
fCModelDeltas.add(delta);
}
@ -855,8 +855,8 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
/**
* Flushes all deltas without firing them.
*/
protected synchronized void flush() {
fCModelDeltas= new ArrayList();
protected void flush() {
fCModelDeltas.clear();
}
private ICElementDelta mergeDeltas(Collection deltas) {