示例#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);
 }