diff options
author | Alain Magloire | 2003-08-20 20:05:05 +0000 |
---|---|---|
committer | Alain Magloire | 2003-08-20 20:05:05 +0000 |
commit | fa5928f508bab9dae0000fdc670d99159112ee5a (patch) | |
tree | 0a65db01f48a80bb8d5979ff1541f1029a46ce58 | |
parent | a55df357e1021be93d6c72bccedd570106130b83 (diff) | |
download | org.eclipse.cdt-fa5928f508bab9dae0000fdc670d99159112ee5a.tar.gz org.eclipse.cdt-fa5928f508bab9dae0000fdc670d99159112ee5a.tar.xz org.eclipse.cdt-fa5928f508bab9dae0000fdc670d99159112ee5a.zip |
Terminate when the thread is interrupted.
-rw-r--r-- | core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java index f778db4ade8..3ce533f2331 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java @@ -40,8 +40,10 @@ public class BinaryRunner extends Thread { // What is wrong ? e.printStackTrace(); } - fireEvents(cbin); - fireEvents(clib); + if (!isInterrupted()) { + fireEvents(cbin); + fireEvents(clib); + } // Tell the listeners we are done. synchronized(this) { notifyAll(); @@ -99,6 +101,9 @@ public class BinaryRunner extends Thread { } public boolean visit(IResource res) throws CoreException { + if (Thread.currentThread().isInterrupted()) { + return false; + } if (res instanceof IFile) { runner.addChildIfBinary((IFile)res); return false; |