コード例 #1
0
 public PriorityManagerPara(int _capacity, global::CJBasic.ObjectManagement.Managers.ActionTypeOnAddOverflow actionType)
 {
     this.capacity = 0x7fffffff;
     this.actionTypeOnAddOverflow = global::CJBasic.ObjectManagement.Managers.ActionTypeOnAddOverflow.Wait;
     this.detectSpanInMSecsOnWait = 10;
     this.capacity = _capacity;
     this.actionTypeOnAddOverflow = actionType;
 }
コード例 #2
0
 public SamePriorityObjectManager()
 {
     this.waiterList              = new LinkedList <T>();
     this.smartRWLocker           = new SmartRWLocker();
     this.capacity                = 0x7fffffff;
     this.actionTypeOnAddOverflow = global::CJBasic.ObjectManagement.Managers.ActionTypeOnAddOverflow.Wait;
     this.detectSpanInMSecsOnWait = 10;
     this.WaiterDiscarded        += delegate {
     };
 }
コード例 #3
0
 public SamePriorityObjectManager(int _capacity, global::CJBasic.ObjectManagement.Managers.ActionTypeOnAddOverflow actionType, int _detectSpanInMSecsOnWait) : this()
 {
     this.capacity = _capacity;
     this.actionTypeOnAddOverflow = actionType;
     this.detectSpanInMSecsOnWait = _detectSpanInMSecsOnWait;
 }
コード例 #4
0
 public SamePriorityObjectManager(int _capacity, global::CJBasic.ObjectManagement.Managers.ActionTypeOnAddOverflow actionType) : this(_capacity, actionType, 10)
 {
 }