/// <summary>
        /// Adds the given label to the <see cref="FloatQueues"/> dictionary if it is not present.
        /// </summary>
        /// <param name="label">The label to be added.</param>
        protected virtual void UpdateFloatDictionaries(string label)
        {
            lock (FloatLocks)
            {
                if (ContainsFloat(label))
                {
                    return;
                }

                FloatLocks.Add(label, new object());
                FloatQueues.Add(label, new Queue <UdpValue>());
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Adds the given label and a "max_<see cref="label"/>" to the <see cref="GenericDeviceData.FloatQueues"/> dictionary if it is not already there.
        /// </summary>
        /// <param name="label">The label to be added.</param>
        protected override void UpdateFloatDictionaries(string label)
        {
            if (FloatQueues.ContainsKey(label))
            {
                return;
            }

            FloatLocks.Add(label, new object());
            FloatQueues.Add(label, new Queue <UdpValue>());
            FloatQueues.Add("max_" + label, new Queue <UdpValue>());
            FloatQueues["max_" + label].Enqueue(new UdpValue());
            FloatLocks.Add("max_" + label, new object());
        }