use of org.metaborg.util.concurrent.ClosableLock in project spoofax by metaborg.
the class IndexTaskContext method readLock.
private IClosableLock readLock() {
final Lock readLock = lock.readLock();
final IClosableLock lock = new ClosableLock(readLock);
return lock;
}
use of org.metaborg.util.concurrent.ClosableLock in project spoofax by metaborg.
the class IndexTaskContext method writeLock.
private IClosableLock writeLock() {
final Lock writeLock = lock.writeLock();
final IClosableLock lock = new ClosableLock(writeLock);
return lock;
}
use of org.metaborg.util.concurrent.ClosableLock in project spoofax by metaborg.
the class AbstractScopeGraphContext method writeLock.
private IClosableLock writeLock() {
final Lock writeLock = lock.writeLock();
final IClosableLock lock = new ClosableLock(writeLock);
return lock;
}
use of org.metaborg.util.concurrent.ClosableLock in project spoofax by metaborg.
the class AbstractScopeGraphContext method readLock.
private IClosableLock readLock() {
final Lock readLock = lock.readLock();
final IClosableLock lock = new ClosableLock(readLock);
return lock;
}
Aggregations