mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-20 07:25:23 +02:00
Bug 311958: Assertion hits because of delayed task. So, cancel all delayed task after shutting down the exutor.
This commit is contained in:
parent
bbcd27276a
commit
d0907f8bec
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ public class GdbLaunch extends DsfLaunch
|
||||||
// Create the dispatch queue to be used by debugger control and services
|
// Create the dispatch queue to be used by debugger control and services
|
||||||
// that belong to this launch
|
// that belong to this launch
|
||||||
final DefaultDsfExecutor dsfExecutor = new DefaultDsfExecutor(GdbLaunchDelegate.GDB_DEBUG_MODEL_ID);
|
final DefaultDsfExecutor dsfExecutor = new DefaultDsfExecutor(GdbLaunchDelegate.GDB_DEBUG_MODEL_ID);
|
||||||
|
// Bug 293109 comment 14
|
||||||
|
// We can use delayed task on the executor, but once it is shutdown, we don't want to execute them.
|
||||||
|
// For instance, in GDBBackend, we start a 30-second delayed task to check that GDB properly started.
|
||||||
|
dsfExecutor.setExecuteExistingDelayedTasksAfterShutdownPolicy(false);
|
||||||
|
|
||||||
dsfExecutor.prestartCoreThread();
|
dsfExecutor.prestartCoreThread();
|
||||||
fExecutor = dsfExecutor;
|
fExecutor = dsfExecutor;
|
||||||
fSession = DsfSession.startSession(fExecutor, GdbLaunchDelegate.GDB_DEBUG_MODEL_ID);
|
fSession = DsfSession.startSession(fExecutor, GdbLaunchDelegate.GDB_DEBUG_MODEL_ID);
|
||||||
|
|
Loading…
Add table
Reference in a new issue