Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

LockMap.java

00001 package gov.nasa.arc.ase.jpf.jvm.runtime;
00002 
00003 import java.util.*;
00004 import gov.nasa.arc.ase.jpf.*;
00005 import gov.nasa.arc.ase.util.Debug;
00006 
00007 public class LockMap{
00008 // ifdef RACE
00009   private HashMap map = new HashMap(); // Maps Lock to LockNode-set
00010 
00011 //#endif RACE
00012   public void add(Lock lock,LockNode lock_node){
00013     getSet(lock).add(lock_node);
00014   }  
00015   public Iterator getIterator(Lock lock){
00016     return getSet(lock).iterator();
00017   }  
00018   private HashSet getSet(Lock lock){
00019     HashSet set = (HashSet)map.get(lock);
00020     if (set == null){
00021       set = new HashSet();
00022       map.put(lock,set);
00023     };
00024     return set;
00025   }  
00026 }

Generated at Thu Feb 7 06:49:57 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001