mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
[292271] DsfServicesTracker must be used on the Executor thread.
This commit is contained in:
parent
7042d486ff
commit
45b0d41f55
1 changed files with 10 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2008 Ericsson and others.
|
* Copyright (c) 2009 Ericsson 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
|
||||||
|
@ -13,6 +13,7 @@ package org.eclipse.cdt.dsf.mi.service.breakpoint.actions;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.breakpointactions.IResumeActionEnabler;
|
import org.eclipse.cdt.debug.core.breakpointactions.IResumeActionEnabler;
|
||||||
import org.eclipse.cdt.dsf.concurrent.DsfExecutor;
|
import org.eclipse.cdt.dsf.concurrent.DsfExecutor;
|
||||||
|
import org.eclipse.cdt.dsf.concurrent.DsfRunnable;
|
||||||
import org.eclipse.cdt.dsf.concurrent.RequestMonitor;
|
import org.eclipse.cdt.dsf.concurrent.RequestMonitor;
|
||||||
import org.eclipse.cdt.dsf.datamodel.IDMContext;
|
import org.eclipse.cdt.dsf.datamodel.IDMContext;
|
||||||
import org.eclipse.cdt.dsf.debug.service.IRunControl;
|
import org.eclipse.cdt.dsf.debug.service.IRunControl;
|
||||||
|
@ -32,10 +33,13 @@ public class MIResumeActionEnabler implements IResumeActionEnabler {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void resume() throws Exception {
|
public void resume() throws Exception {
|
||||||
final IRunControl runControlService = fServiceTracker.getService(IRunControl.class);
|
fExecutor.execute(new DsfRunnable() {
|
||||||
if (runControlService != null) {
|
public void run() {
|
||||||
runControlService.resume(fContext, new RequestMonitor(fExecutor, null));
|
final IRunControl runControlService = fServiceTracker.getService(IRunControl.class);
|
||||||
}
|
if (runControlService != null) {
|
||||||
|
runControlService.resume(fContext, new RequestMonitor(fExecutor, null));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue