Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-08-19 22:24:44 -0400
committerSergey Prigogin2012-08-22 19:57:21 -0400
commite3e7ee663c755784697d90126e34b539fba13aa5 (patch)
treeb1540afcbf0de2e264589a0e50dd9bb3d2e62916
parentffe717ed933c65a595aa422edc85d013925c6b9c (diff)
downloadorg.eclipse.cdt-e3e7ee663c755784697d90126e34b539fba13aa5.tar.gz
org.eclipse.cdt-e3e7ee663c755784697d90126e34b539fba13aa5.tar.xz
org.eclipse.cdt-e3e7ee663c755784697d90126e34b539fba13aa5.zip
Further simplification of PDOMManager.joinIndexer method.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java
index 1aca996655..609d2d334b 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java
@@ -1092,13 +1092,12 @@ public class PDOMManager implements IWritableIndexManager, IListener {
assert monitor != null;
long deadline = waitMaxMillis == FOREVER ? Long.MAX_VALUE : System.currentTimeMillis() + waitMaxMillis;
- final boolean[] idleCondition = { false };
+ final boolean[] idleCondition = { false };
JobChangeAdapter listener = new JobChangeAdapter() {
@Override
public void done(IJobChangeEvent event) {
synchronized (idleCondition) {
- Job[] jobs = Job.getJobManager().find(PDOMManager.this);
- if (jobs.length == 0 || jobs.length == 1 && event.getJob() == jobs[0]) {
+ if (Job.getJobManager().find(PDOMManager.this).length == 0) {
idleCondition[0] = true;
idleCondition.notifyAll();
}

Back to the top