com.arjuna.ats.arjuna.common
Interface Mutex


public interface Mutex

Implementations of semaphore classes should derive from this class and provide implementations of the relevant methods.

Since:
JTS 1.0.
Version:
$Id$
Author:
Mark Little (mark@arjuna.com)

Field Summary
static int ERROR
           
static int LOCKED
           
static int UNLOCKED
           
static int WOULD_BLOCK
           
 
Method Summary
 int lock()
           
 int tryLock()
           
 int unlock()
           
 

Field Detail

LOCKED

static final int LOCKED
See Also:
Constant Field Values

UNLOCKED

static final int UNLOCKED
See Also:
Constant Field Values

WOULD_BLOCK

static final int WOULD_BLOCK
See Also:
Constant Field Values

ERROR

static final int ERROR
See Also:
Constant Field Values
Method Detail

lock

int lock()

unlock

int unlock()

tryLock

int tryLock()


Copyright © 2012. All Rights Reserved.