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:
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>
|
||||
* 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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue