1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-01 05:15:43 +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); CCorePlugin.getIndexManager().reindex(cproject);
assertTrue(CCorePlugin.getIndexManager().joinIndexer(360000, new NullProgressMonitor())); assertTrue(CCorePlugin.getIndexManager().joinIndexer(360000, new NullProgressMonitor()));
pdom= (PDOM) CCoreInternals.getPDOMManager().getPDOM(cproject); pdom= (PDOM) CCoreInternals.getPDOMManager().getPDOM(cproject);
pdom.acquireReadLock();
} }
protected void tearDown() throws Exception { protected void tearDown() throws Exception {
if(pdom!=null) { if(pdom!=null) {
pdom.releaseWriteLock(); pdom.releaseReadLock();
} }
pdom= null;
cproject.getProject().delete(true, NPM); cproject.getProject().delete(true, NPM);
} }