mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 11:55:40 +02:00
fix some race conditions on the CModelManager.
Not need to synch, the list itself is synchronized.
This commit is contained in:
parent
6db86e2257
commit
b700118b1f
1 changed files with 3 additions and 3 deletions
|
@ -650,7 +650,7 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
|
||||||
* Model. Deltas created as translations of <code>IResourceDeltas</code>
|
* Model. Deltas created as translations of <code>IResourceDeltas</code>
|
||||||
* are to be registered with <code>#registerResourceDelta</code>.
|
* are to be registered with <code>#registerResourceDelta</code>.
|
||||||
*/
|
*/
|
||||||
public synchronized void registerCModelDelta(ICElementDelta delta) {
|
public void registerCModelDelta(ICElementDelta delta) {
|
||||||
fCModelDeltas.add(delta);
|
fCModelDeltas.add(delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -855,8 +855,8 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
|
||||||
/**
|
/**
|
||||||
* Flushes all deltas without firing them.
|
* Flushes all deltas without firing them.
|
||||||
*/
|
*/
|
||||||
protected synchronized void flush() {
|
protected void flush() {
|
||||||
fCModelDeltas= new ArrayList();
|
fCModelDeltas.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
private ICElementDelta mergeDeltas(Collection deltas) {
|
private ICElementDelta mergeDeltas(Collection deltas) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue