MCPcopy Create free account
hub / github.com/BaseXdb/basex / unpin

Method unpin

basex-core/src/main/java/org/basex/core/locks/Locking.java:200–206  ·  view source on GitHub ↗

Unpins a lock string. Removes a lock if pin count is zero. @param string lock string @return lock

(final String string)

Source from the content-addressed store, hash-verified

198 * @return lock
199 */
200 private LocalReadWriteLock unpin(final String string) {
201 synchronized(localLocks) {
202 final LocalReadWriteLock lock = localLocks.get(string);
203 if(lock.unpin()) localLocks.remove(string);
204 return lock;
205 }
206 }
207
208 /**
209 * Returns query lock keys.

Callers 2

releaseMethod · 0.95
closeMethod · 0.45

Calls 3

unpinMethod · 0.95
getMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected