|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.concurrent.locks.AbstractOwnableSynchronizer
java.util.concurrent.locks.AbstractQueuedSynchronizer
org.codehaus.groovy.util.LockableObject
class LockableObject extends AbstractQueuedSynchronizer
A bit simplified lock designed to be inherited by.
Field Summary | |
---|---|
Thread |
owner
|
Constructor Summary | |
LockableObject()
|
Method Summary | |
---|---|
protected boolean
|
isHeldExclusively()
|
void
|
lock()
|
protected boolean
|
tryAcquire(int acquires)
|
protected boolean
|
tryRelease(int releases)
|
void
|
unlock()
|
Methods inherited from class AbstractQueuedSynchronizer | |
---|---|
toString, acquireInterruptibly, getQueueLength, getQueuedThreads, getWaitQueueLength, getWaitingThreads, hasQueuedThreads, hasWaiters, isQueued, release, tryAcquireNanos, acquire, acquireShared, acquireSharedInterruptibly, getExclusiveQueuedThreads, getFirstQueuedThread, getSharedQueuedThreads, hasContended, hasQueuedPredecessors, owns, releaseShared, tryAcquireSharedNanos, wait, wait, wait, hashCode, getClass, equals, notify, notifyAll |
Methods inherited from class AbstractOwnableSynchronizer | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
Thread owner
Constructor Detail |
---|
LockableObject()
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-2009 The Codehaus. All rights reserved.