|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.ats.arjuna.common.Mutex
public class Mutex
This is a reentrant Mutex implementation.
Field Summary | |
---|---|
static int |
ERROR
|
static int |
LOCKED
|
static int |
UNLOCKED
|
static int |
WOULD_BLOCK
|
Constructor Summary | |
---|---|
Mutex()
|
|
Mutex(boolean reentrant)
|
Method Summary | |
---|---|
int |
lock()
Classic mutex operations. |
int |
tryLock()
|
int |
unlock()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LOCKED
public static final int UNLOCKED
public static final int WOULD_BLOCK
public static final int ERROR
Constructor Detail |
---|
public Mutex()
public Mutex(boolean reentrant)
Method Detail |
---|
public int lock()
public int unlock()
public int tryLock()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |