Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] CDT/Core BinarySearch fix

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/ChangeLog,v
retrieving revision 1.127
diff -u -r1.127 ChangeLog
--- ChangeLog	20 Aug 2003 18:05:30 -0000	1.127
+++ ChangeLog	20 Aug 2003 20:03:58 -0000
@@ -1,3 +1,10 @@
+2003-08-20 Alain Magloire
+
+	When doing the IPlugin.shutdown().  We have to make
+	sure that the binarySearch threads are terminated.
+	
+	* src/org/eclipse/cdt/internal/core/model/BinaryRunner.java
+
 2003-08-19 Sean Evoy
 	In order to properly support the indexing feature, the scanner has to 
 	function as well as the version that ships with the toolset if possible. 
Index: model/org/eclipse/cdt/internal/core/model/BinaryRunner.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java,v
retrieving revision 1.2
diff -u -r1.2 BinaryRunner.java
--- model/org/eclipse/cdt/internal/core/model/BinaryRunner.java	27 Mar 2003 16:05:18 -0000	1.2
+++ model/org/eclipse/cdt/internal/core/model/BinaryRunner.java	20 Aug 2003 20:03:58 -0000
@@ -40,8 +40,10 @@
 			// 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 boolean visit(IResource res) throws CoreException {
+			if (Thread.currentThread().isInterrupted()) {
+				return false;
+			}
 			if (res instanceof IFile) {
 				runner.addChildIfBinary((IFile)res);
 				return false;



Back to the top