Examples of IcedInt


Examples of water.util.IcedInt

    assert o instanceof Frame;
    for(Vec v: ((Frame) o).vecs()) subRef(v);
  }

  private void addRef(Vec v) {
    IcedInt I = _refcnt.get(v);
    assert I==null || I._val>0;
    _refcnt.put(v,new IcedInt(I==null?1:I._val+1));
    //TODO: Does masterVec() need to become public?
//      if (v.masterVec()!=null) addRef(vec.masterVec());
  }
View Full Code Here

Examples of water.util.IcedInt

    if (cnt <= 0) {
      Futures fs = new Futures();
      DKV.remove(v._key, fs);
      fs.blockForPending();
      _refcnt.remove(v);
    } else { _refcnt.put(v, new IcedInt(cnt)); }
  }
View Full Code Here

Examples of water.util.IcedInt

    if (((ValFrame) o)._fr != null && _locked.contains(((ValFrame) o)._fr._key)) return;
    for(Vec v: ((ValFrame) o)._fr.vecs()) subRef(v);
  }

  private void addRef(Vec v) {
    IcedInt I = _refcnt.get(v);
    assert I==null || I._val>0;
    _refcnt.put(v,new IcedInt(I==null?1:I._val+1));
    //TODO: Does masterVec() need to become public?
//      if (v.masterVec()!=null) addRef(vec.masterVec());
  }
View Full Code Here

Examples of water.util.IcedInt

    if (_refcnt.get(v) == null) return;
    int cnt = _refcnt.get(v)._val - 1;
    if (cnt <= 0) {
      removeVec(v);
      _refcnt.remove(v);
    } else { _refcnt.put(v, new IcedInt(cnt)); }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.