1
0
Fork 0
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:
Alain Magloire 2002-10-26 20:28:07 +00:00
parent 99a447c6b6
commit 7d3ce278c7

View file

@ -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();
}