1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Race condition causing deadlocks fix.

This commit is contained in:
Alain Magloire 2004-05-05 00:08:57 +00:00
parent 4e2d61d298
commit a9e573a74c
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2004-04-04 Alain Magloire
Race condition causing deadlocks fix.
* model/org/eclipse/cdt/internal/core/model/CModelManager.java
2004-04-29 Alain Magloire
Changes to working copy, to be wrap in runnable Plaform

View file

@ -744,7 +744,7 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
* Fire C Model deltas, flushing them after the fact.
* If the firing mode has been turned off, this has no effect.
*/
public synchronized void fire(ICElementDelta customDeltas, int eventType) {
public void fire(ICElementDelta customDeltas, int eventType) {
if (fFire) {
ICElementDelta deltaToNotify;
if (customDeltas == null) {

View file

@ -37,7 +37,7 @@ public class LibraryEntry extends APathEntry implements ILibraryEntry {
public LibraryEntry(IPath resourcePath, IPath basePath, IPath baseRef, IPath libraryPath, IPath sourceAttachmentPath,
IPath sourceAttachmentRootPath, IPath sourceAttachmentPrefixMapping, boolean isExported) {
super(ILibraryEntry.CDT_LIBRARY, basePath, baseRef, resourcePath, APathEntry.NO_EXCLUSION_PATTERNS, isExported);
this.libraryPath = libraryPath;
this.libraryPath = (libraryPath == null) ? EMPTY_PATH : libraryPath;
this.sourceAttachmentPath = sourceAttachmentPath;
this.sourceAttachmentRootPath = sourceAttachmentRootPath;
this.sourceAttachmentPrefixMapping = sourceAttachmentPrefixMapping;
@ -133,7 +133,7 @@ public class LibraryEntry extends APathEntry implements ILibraryEntry {
}
public IPath getFullLibraryPath() {
IPath lib = getPath();
IPath lib = getLibraryPath();
IPath p = (!basePath.isEmpty()) ? basePath.append(lib) : lib;
if (p.isAbsolute()) {
return p;