public CachePool(RunningPool <T> runningPoool, SleepingPool <T> sleepPool, bool autoClear, int sleepCapcity) { this.AutoClear = autoClear; this.SleepCapcity = sleepCapcity; this.RunningPoool = runningPoool; this.SleepPool = sleepPool; }
public CachePool(SleepingPool <T> sleepPool) : this(new RunningPool <T>(), sleepPool, true, 16) { }
public CachePool(RunningPool <T> runningPoool, SleepingPool <T> sleepPool) : this(runningPoool, sleepPool, true, 16) { }
public static void SetCreater <T>(SleepingPool <T> creater) where T : IPoolObject { GetPool(typeof(T)).SleepPool = creater as SleepingPool <IPoolObject>; }