void ClearAutoRelease() { if (m_autoPool == null) { return; } m_autoPool.Remove(this); //从池里移除 m_autoPool = null; }
public void AutoRelease(AutoRelease pool_) { if (IsDisposed(true)) { return; } if (m_autoPool != null) { return; } m_autoPool = pool_; m_autoPool.Add(this); }