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

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