Class CentMutex

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

public class CentMutex
extends Process
implements Lock


Constructor Summary
CentMutex(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

CentMutex

public CentMutex(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