Example #1
0
        public static ChoQueue Synchronized(ChoQueue queue)
        {
            if (queue == null)
            {
                throw new ArgumentNullException("queue");
            }

            return(new ChoSynchronizedQueue(queue));
        }
Example #2
0
 internal ChoSynchronizedQueue(ChoQueue q)
 {
     _q   = q;
     root = _q.SyncRoot;
 }
Example #3
0
 // Methods
 internal ChoQueueEnumerator(ChoQueue q)
 {
     _q     = q;
     _index = q == null || q.Count == 0 ? -1 : 0;
 }