Example #1
0
 public void clear() {
   for (GlowChunk.Key key : keys) {
     cm.getLockSet(key).remove(this);
     // GlowServer.logger.info(this + " clearing " + key);
   }
   keys.clear();
 }
Example #2
0
 public void release(GlowChunk.Key key) {
   if (!keys.contains(key)) return;
   keys.remove(key);
   cm.getLockSet(key).remove(this);
   // GlowServer.logger.info(this + " releases " + key);
 }
Example #3
0
 public void acquire(GlowChunk.Key key) {
   if (keys.contains(key)) return;
   keys.add(key);
   cm.getLockSet(key).add(this);
   // GlowServer.logger.info(this + " acquires " + key);
 }