/// <summary>
        /// Moves items from the input queue to the output queue.
        /// </summary>
        void BroadcastProcess()
        {
            T item;

            while (messageQueue.TryTake(out item))
            {
                outgoing.AddData(item);
            }
        }
示例#2
0
        /// <summary>
        /// Moves an item from the input queue to the output queue.
        /// </summary>
        void BroadcastProcess()
        {
            T item;

            if (messageQueue.TryTake(out item))
            {
                outgoing.AddData(item);
            }
            outgoing.DequeueItem();
        }