Exemple #1
0
        public static InfiniteScaleObjectPool <T> Create(uint initialSize)
        {
            var pool = new InfiniteScaleObjectPool <T>();

            for (uint i = 0; i < initialSize; i++)
            {
                pool.Return(pool.Create());
            }

            return(pool);
        }
Exemple #2
0
 public static void Return(PooledCountdownEvent obj)
 {
     Pool.Return(obj);
 }