1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

Prevent deadlock when opening projects while refreshing the executables list.

This commit is contained in:
Ken Ryall 2010-09-12 13:45:03 +00:00
parent f940989086
commit c72e99bd35

View file

@ -102,9 +102,9 @@ public class ExecutablesManager extends PlatformObject implements IResourceChang
if (provider != null) {
trace("Getting executables for project: " + project.getName() + " using " + provider.toString()); //$NON-NLS-1$//$NON-NLS-2$
List<Executable> executables = provider.getExecutables(project, subMonitor.newChild(1, SubMonitor.SUPPRESS_NONE));
// store the list of executables for this project
synchronized (executablesMap) {
List<Executable> executables = provider.getExecutables(project, subMonitor.newChild(1, SubMonitor.SUPPRESS_NONE));
if (!monitor.isCanceled()) {
executablesMap.put(project, executables);
}