1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Remove obsolete synchronized block

This commit is contained in:
Anton Leherbauer 2007-03-21 15:02:39 +00:00
parent beb1492c3e
commit c075878b2a

View file

@ -129,18 +129,15 @@ public class ASTCache {
// no cached AST, but wait
if (isActiveElement && isReconciling(tUnit)) {
try {
final ICElement activeElement= fActiveTU;
// Wait for AST
if (DEBUG)
System.out.println(DEBUG_PREFIX + getThreadName() + "waiting for AST for: " + tUnit.getElementName()); //$NON-NLS-1$
fCacheMutex.wait();
// Check whether active element is still valid (
synchronized (this) {
if (activeElement == fActiveTU && fAST != null) {
if (DEBUG)
System.out.println(DEBUG_PREFIX + getThreadName() + "...got AST for: " + tUnit.getElementName()); //$NON-NLS-1$
return fAST;
}
if (fAST != null) {
if (DEBUG)
System.out.println(DEBUG_PREFIX + getThreadName() + "...got AST for: " + tUnit.getElementName()); //$NON-NLS-1$
return fAST;
}
// try again
continue;