1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 20:05:35 +02:00

Fix pdom-locks in CPPClassTemplateTests

This commit is contained in:
Markus Schorn 2007-03-30 12:58:44 +00:00
parent 911c189dfb
commit fcfb9ae587

View file

@ -64,12 +64,14 @@ public class CPPClassTemplateTests extends PDOMTestBase {
CCorePlugin.getIndexManager().reindex(cproject);
assertTrue(CCorePlugin.getIndexManager().joinIndexer(360000, new NullProgressMonitor()));
pdom= (PDOM) CCoreInternals.getPDOMManager().getPDOM(cproject);
pdom.acquireReadLock();
}
protected void tearDown() throws Exception {
if(pdom!=null) {
pdom.releaseWriteLock();
pdom.releaseReadLock();
}
pdom= null;
cproject.getProject().delete(true, NPM);
}