Example #1
0
 public void mapdata2(Message msg) {
   Coord c = msg.coord();
   synchronized (grids) {
     synchronized (req) {
       if (req.containsKey(c)) {
         Grid g = grids.get(c);
         if (g == null) grids.put(c, g = new Grid(c));
         g.fill(msg);
         req.remove(c);
         olseq++;
       }
     }
   }
 }
Example #2
0
 public void request(Coord gc) {
   synchronized (req) {
     if (!req.containsKey(gc)) req.put(gc, new Request());
   }
 }