mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Terminate when the thread is interrupted.
This commit is contained in:
parent
a55df357e1
commit
fa5928f508
1 changed files with 7 additions and 2 deletions
|
@ -40,8 +40,10 @@ public class BinaryRunner extends Thread {
|
||||||
// What is wrong ?
|
// What is wrong ?
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
if (!isInterrupted()) {
|
||||||
fireEvents(cbin);
|
fireEvents(cbin);
|
||||||
fireEvents(clib);
|
fireEvents(clib);
|
||||||
|
}
|
||||||
// Tell the listeners we are done.
|
// Tell the listeners we are done.
|
||||||
synchronized(this) {
|
synchronized(this) {
|
||||||
notifyAll();
|
notifyAll();
|
||||||
|
@ -99,6 +101,9 @@ public class BinaryRunner extends Thread {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean visit(IResource res) throws CoreException {
|
public boolean visit(IResource res) throws CoreException {
|
||||||
|
if (Thread.currentThread().isInterrupted()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (res instanceof IFile) {
|
if (res instanceof IFile) {
|
||||||
runner.addChildIfBinary((IFile)res);
|
runner.addChildIfBinary((IFile)res);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue