示例#1
0
 public Putter(TestFairCallQueue _enclosing, BlockingQueue <Schedulable> aCq, int maxCalls
               , string tag, CountDownLatch latch)
 {
     this._enclosing = _enclosing;
     // How many calls we added, accurate unless interrupted
     this.maxCalls = maxCalls;
     this.cq       = aCq;
     this.tag      = tag;
     this.latch    = latch;
 }
示例#2
0
 public Taker(TestFairCallQueue _enclosing, BlockingQueue <Schedulable> aCq, int maxCalls
              , string tag, CountDownLatch latch)
 {
     this._enclosing = _enclosing;
     // if >= 0 means we will only take the matching tag, and put back
     // anything else
     // total calls taken, accurate if we aren't interrupted
     // the last thing we took
     // maximum calls to take
     this.maxCalls = maxCalls;
     this.cq       = aCq;
     this.tag      = tag;
     this.uip      = new UserIdentityProvider();
     this.latch    = latch;
 }