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);
 }