public void Bounded_queue_enqueue()
 {
     for (int i = 0; i < OPERATIONS; i++)
     {
         boundedQueue.TryPush(msg);
     }
 }
示例#2
0
        public void Setup()
        {
            boundedQueue   = new BoundedQueue(OPERATIONS);
            unboundedQueue = new UnboundedQueue <ISignal>();

            var msg = Activated.Instance;

            for (int i = 0; i < OPERATIONS; i++)
            {
                boundedQueue.TryPush(msg);
                unboundedQueue.TryPush(msg);
            }
        }
示例#3
0
 public void BoundedQueue_enqueue_dequeue()
 {
     boundedQueue.TryPush(msg);
     boundedQueue.TryPop(out var signal);
 }