mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Cosmetics.
This commit is contained in:
parent
6ae45784a5
commit
6f0c54eb86
1 changed files with 13 additions and 20 deletions
|
@ -139,18 +139,14 @@ public class PDOMIndexerJob extends Job {
|
|||
time += System.currentTimeMillis();
|
||||
System.out.println("Indexer: completed " + name + "[" + time + "ms]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
}
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
catch (OperationCanceledException e) {
|
||||
} catch (OperationCanceledException e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
while (currentTask != null);
|
||||
} while (currentTask != null);
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
catch (RuntimeException e) {
|
||||
} catch (RuntimeException e) {
|
||||
CCorePlugin.log(e);
|
||||
pdomManager.cancelledIndexerJob(true);
|
||||
synchronized (taskMutex) {
|
||||
|
@ -158,8 +154,7 @@ public class PDOMIndexerJob extends Job {
|
|||
taskMutex.notifyAll();
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
catch (Error e) {
|
||||
} catch (Error e) {
|
||||
CCorePlugin.log(e);
|
||||
pdomManager.cancelledIndexerJob(true);
|
||||
synchronized (taskMutex) {
|
||||
|
@ -167,8 +162,7 @@ public class PDOMIndexerJob extends Job {
|
|||
taskMutex.notifyAll();
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
finally {
|
||||
} finally {
|
||||
synchronized (this) {
|
||||
fMonitor= null;
|
||||
}
|
||||
|
@ -185,8 +179,7 @@ public class PDOMIndexerJob extends Job {
|
|||
|
||||
public void cancelJobs(IPDOMIndexer indexer, boolean waitUntilCancelled) {
|
||||
synchronized (taskMutex) {
|
||||
if (currentTask != null &&
|
||||
(indexer == null || currentTask.getIndexer() == indexer)) {
|
||||
if (currentTask != null && (indexer == null || currentTask.getIndexer() == indexer)) {
|
||||
synchronized (this) {
|
||||
if (fMonitor != null) {
|
||||
fMonitor.setCanceled(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue