示例#1
0
        public static ThreadLocalObjectList NewInstance(int minCapacity)
        {
            ThreadLocalObjectList ret = Pool.Take();

            if (ret.Capacity < minCapacity)
            {
                ret.Capacity = minCapacity;
            }
            return(ret);
        }
示例#2
0
 public static ThreadLocalList <T> NewInstance() => Pool.Take();
示例#3
0
 public static ThreadLocalObjectList NewInstance() => Pool.Take(); //NewInstance(DefaultInitialCapacity);
示例#4
0
 public static ThreadLocalObjectList Take()
 {
     return(Pool.Take());
 }
示例#5
0
 public static ThreadLocalObjectList Take() => Pool.Take();