Esempio n. 1
0
        public ObjectCacheFiexedThreadSafe(int capacity, EnumOperateAtExhaust operatorAtExhaust)
        {
            EventObjRelease = new AutoResetEvent(false);
            EventSync       = new AutoResetEvent(true);

            this.Capacity         = capacity;
            _IdleCount            = capacity;
            this.OperateAtExhaust = operatorAtExhaust;
        }
Esempio n. 2
0
 public ObjectCacheFiexed(int capacity, EnumOperateAtExhaust operatorAtExhaust)
 {
     this.Capacity         = capacity;
     _IdleCount            = 0;
     this.OperateAtExhaust = operatorAtExhaust;
 }