mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-27 02:45:32 +02:00
Bug 348573 - Deadlock between BinaryRunner and project model serializing
lock
This commit is contained in:
parent
b2452fb45d
commit
e5539057ca
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2000, 2009 QNX Software Systems and others.
|
* Copyright (c) 2000, 2011 QNX Software Systems and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -723,6 +723,7 @@ public class CProject extends Openable implements ICProject {
|
||||||
@Override
|
@Override
|
||||||
protected void closing(Object info) throws CModelException {
|
protected void closing(Object info) throws CModelException {
|
||||||
if (info instanceof CProjectInfo) {
|
if (info instanceof CProjectInfo) {
|
||||||
|
CModelManager.getDefault().removeBinaryRunner(this);
|
||||||
CProjectInfo pinfo = (CProjectInfo)info;
|
CProjectInfo pinfo = (CProjectInfo)info;
|
||||||
if (pinfo.vBin != null) {
|
if (pinfo.vBin != null) {
|
||||||
pinfo.vBin.close();
|
pinfo.vBin.close();
|
||||||
|
@ -731,7 +732,6 @@ public class CProject extends Openable implements ICProject {
|
||||||
pinfo.vLib.close();
|
pinfo.vLib.close();
|
||||||
}
|
}
|
||||||
pinfo.resetCaches();
|
pinfo.resetCaches();
|
||||||
CModelManager.getDefault().removeBinaryRunner(this);
|
|
||||||
}
|
}
|
||||||
super.closing(info);
|
super.closing(info);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue