Class DinMutex

java.lang.Object
  |
  +--Process
        |
        +--DinMutex
All Implemented Interfaces:
Lock, MsgHandler

public class DinMutex
extends Process
implements Lock


Constructor Summary
DinMutex(Linker initComm)
           
 
Method Summary
 void handleMsg(Msg m, int src, java.lang.String tag)
           
 void releaseCS()
           
 void requestCS()
           
 
Methods inherited from class Process
broadcastMsg, isNeighbor, myWait, receiveMsg, sendMsg, sendMsg, sendMsg, sendMsg, sendToNeighbors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface MsgHandler
receiveMsg
 

Constructor Detail

DinMutex

public DinMutex(Linker initComm)
Method Detail

requestCS

public void requestCS()
Specified by:
requestCS in interface Lock

releaseCS

public void releaseCS()
Specified by:
releaseCS in interface Lock

handleMsg

public void handleMsg(Msg m,
                      int src,
                      java.lang.String tag)
Specified by:
handleMsg in interface MsgHandler
Overrides:
handleMsg in class Process