com.arjuna.ats.arjuna.common
Class Mutex
java.lang.Object
com.arjuna.ats.arjuna.common.Mutex
- public class Mutex
- extends java.lang.Object
This is a reentrant Mutex implementation.
- Since:
- 1.0.
- Version:
- $Id: Mutex.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
Constructor Summary |
Mutex()
|
Mutex(boolean reentrant)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCKED
public static final int LOCKED
- See Also:
- Constant Field Values
UNLOCKED
public static final int UNLOCKED
- See Also:
- Constant Field Values
WOULD_BLOCK
public static final int WOULD_BLOCK
- See Also:
- Constant Field Values
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
Mutex
public Mutex()
Mutex
public Mutex(boolean reentrant)
finalize
public void finalize()
lock
public int lock()
- Classic mutex operations.
unlock
public int unlock()
tryLock
public int tryLock()