|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.concurrent.locks.AbstractOwnableSynchronizer java.util.concurrent.locks.AbstractQueuedSynchronizer org.codehaus.groovy.util.LockableObject
public class LockableObject extends AbstractQueuedSynchronizer
A bit simplified lock designed to be inherited by.
Method Summary | |
---|---|
protected boolean
|
isHeldExclusively()
|
void
|
lock()
|
protected boolean
|
tryAcquire(int acquires)
|
protected boolean
|
tryRelease(int releases)
|
void
|
unlock()
|
Methods inherited from class AbstractOwnableSynchronizer | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
protected final boolean isHeldExclusively()
public final void lock()
protected final boolean tryAcquire(int acquires)
protected final boolean tryRelease(int releases)
public final void unlock()
Copyright © 2003-2013 The Codehaus. All rights reserved.