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

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