Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.html,v 1.1 2008/01/04 06:52:39 afitzsim Exp $
Author:
  Mark Little (mark@arjuna.com)

Field Summary
`static int` | `ERROR`
`static int` | `LOCKED`
`static int` | `UNLOCKED`
`static int` | `WOULD_BLOCK`

Constructor Summary
`Mutex()`
`Mutex(boolean reentrant)`

Method Summary
`void` | `finalize()`
`int` | `lock()` Classic mutex operations.
`int` | `tryLock()`
`int` | `unlock()`

Methods inherited from class java.lang.Object
`clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### 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

Constructor Detail

### Mutex

    public Mutex()

### Mutex

    public Mutex(boolean reentrant)

Method Detail

### finalize

    public void finalize()

### lock

    public int lock()

  Classic mutex operations.

### unlock

    public int unlock()

### tryLock

    public int tryLock()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD