コード例 #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;
 }
コード例 #2
0
 public CachePool(SleepingPool <T> sleepPool) : this(new RunningPool <T>(), sleepPool, true, 16)
 {
 }
コード例 #3
0
 public CachePool(RunningPool <T> runningPoool, SleepingPool <T> sleepPool) : this(runningPoool, sleepPool, true, 16)
 {
 }
コード例 #4
0
 public static void SetCreater <T>(SleepingPool <T> creater) where T : IPoolObject
 {
     GetPool(typeof(T)).SleepPool = creater as SleepingPool <IPoolObject>;
 }