예제 #1
0
 public void clear() {
   for (GlowChunk.Key key : keys) {
     cm.getLockSet(key).remove(this);
     // GlowServer.logger.info(this + " clearing " + key);
   }
   keys.clear();
 }
예제 #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);
 }
예제 #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);
 }