org.objectweb.dream.synchro
Interface MutexReEntrant

All Superinterfaces:
Mutex
All Known Implementing Classes:
MutexReEntrantImpl

public interface MutexReEntrant
extends Mutex

A reentrant mutex component aims at synchronizing the execution of several components.


Field Summary
static String ITF_NAME
          The default name of the MutexReEntrantinterface.
 
Method Summary
 void forceLock(Object o)
          Acquires the mutex with parameters that have been returned by a previous call to forceUnlock().
 Object forceUnlock()
          Releases the mutex even if it has been acquired several times (by multiple calls to the lock() function).
 
Methods inherited from interface org.objectweb.dream.synchro.Mutex
lock, timedLock, unlock
 

Field Detail

ITF_NAME

static final String ITF_NAME
The default name of the MutexReEntrantinterface.

See Also:
Constant Field Values
Method Detail

forceLock

void forceLock(Object o)
               throws InterruptedException
Acquires the mutex with parameters that have been returned by a previous call to forceUnlock().

Parameters:
o - parameters that have been returned by a previous call to forceUnlock().
Throws:
InterruptedException - the thread is interrupted.

forceUnlock

Object forceUnlock()
Releases the mutex even if it has been acquired several times (by multiple calls to the lock() function). The returned object represents the state of the lock. It must be given as parameter to the forceLock() method if the mutex is to be reacquired later (with the same state).

Returns:
o an object representing the state of the lock.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.