org.apache.myfaces.orchestra.lib
Class _ReentrantLock
java.lang.Object
org.apache.myfaces.orchestra.lib._ReentrantLock
- All Implemented Interfaces:
- java.io.Serializable
public class _ReentrantLock
- extends java.lang.Object
- implements java.io.Serializable
A reentrant mutual exclusion with the same basic
behavior and semantics as the implicit monitor lock accessed using
synchronized
methods and statements.
Serialization of this class behaves in the same way as built-in
locks: a deserialized lock is in the unlocked state, regardless of
its state when serialized.
This class exists just for the purposes of Java 1.4 compatibility;
it is equivalent to the Java 1.5 ReentrantLock class. It probably
doesn't perform as well as the "real" lock class, but Orchestra
doesn't use it in any critical paths.
- Since:
- 1.1
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_ReentrantLock
public _ReentrantLock()
lockInterruptibly
public void lockInterruptibly()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
unlock
public void unlock()
isHeldByCurrentThread
public boolean isHeldByCurrentThread()
Copyright © 2009 The Apache Software Foundation. All Rights Reserved.