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