mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
setTerminate() takes a new argument.
This commit is contained in:
parent
99a447c6b6
commit
7d3ce278c7
1 changed files with 4 additions and 4 deletions
|
@ -169,7 +169,7 @@ public class MIInferior extends Process {
|
|||
interrupt();
|
||||
session.postCommand(abort);
|
||||
abort.getMIInfo();
|
||||
setTerminated(true);
|
||||
setTerminated(abort.getToken(), true);
|
||||
} catch (MIException e) {
|
||||
}
|
||||
}
|
||||
|
@ -226,10 +226,10 @@ public class MIInferior extends Process {
|
|||
}
|
||||
|
||||
public synchronized void setTerminated() {
|
||||
setTerminated(false);
|
||||
setTerminated(0, false);
|
||||
}
|
||||
|
||||
synchronized void setTerminated(boolean fireEvent) {
|
||||
synchronized void setTerminated(int token, boolean fireEvent) {
|
||||
state = TERMINATED;
|
||||
// Close the streams.
|
||||
try {
|
||||
|
@ -270,7 +270,7 @@ public class MIInferior extends Process {
|
|||
}
|
||||
}
|
||||
if (fireEvent) {
|
||||
session.fireEvent(new MIInferiorExitEvent());
|
||||
session.fireEvent(new MIInferiorExitEvent(token));
|
||||
}
|
||||
notifyAll();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue