예제 #1
0
        /// <summary>
        /// 清空对象池
        /// </summary>
        public void Clear()
        {
            IObjectPool pool = this.GetObjectPool();

            if (pool != null)
            {
                pool.Clear();
            }
        }
예제 #2
0
 public void Dispose()
 {
     pool?.Clear();
 }
예제 #3
0
 public void Clear()
 {
     objectPool.Clear();
 }
예제 #4
0
 public void ClearObjectPool()
 {
     _pool.Clear();
 }