Пример #1
0
 void ClearAutoRelease()
 {
     if (m_autoPool == null)
     {
         return;
     }
     m_autoPool.Remove(this);    //从池里移除
     m_autoPool = null;
 }
Пример #2
0
        public void AutoRelease(AutoRelease pool_)
        {
            if (IsDisposed(true))
            {
                return;
            }

            if (m_autoPool != null)
            {
                return;
            }
            m_autoPool = pool_;
            m_autoPool.Add(this);
        }