1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 11:25:35 +02:00

Added javadoc

This commit is contained in:
Markus Schorn 2006-09-07 08:46:13 +00:00
parent f687cd8f7a
commit c09be87a9b

View file

@ -7,6 +7,7 @@
* *
* Contributors: * Contributors:
* QNX - Initial API and implementation * QNX - Initial API and implementation
* Markus Schorn (Wind River Systems)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.core.dom; package org.eclipse.cdt.core.dom;
@ -71,8 +72,26 @@ public interface IPDOM extends IAdaptable {
public ICodeReaderFactory getCodeReaderFactory(IWorkingCopy root); public ICodeReaderFactory getCodeReaderFactory(IWorkingCopy root);
/**
* When accessing a PDOM and working with its objects it's neccessary to hold
* a read-lock on the PDOM. Make sure to release it: <pre>
* pdom.acquireReadLock();
* try {
* // do what you have to do.
* }
* finally {
* pdom.releaseReadLock();
* } </pre>
* @throws InterruptedException
* @since 4.0
*/
public void acquireReadLock() throws InterruptedException; public void acquireReadLock() throws InterruptedException;
public void releaseReadLock(); public void releaseReadLock();
/**
* You must not hold any other lock on any PDOM when acquiring a write lock.
* Failing to do so may lead to dead-locks.
*/
public void acquireWriteLock() throws InterruptedException; public void acquireWriteLock() throws InterruptedException;
public void releaseWriteLock(); public void releaseWriteLock();