Пример #1
0
        private void EnqueueResultToInbox(IAsyncResult asyncResult)
        {
            _resultQueue.WriteLock(x => x.Enqueue(asyncResult));

            if (_resultQueue.ReadLock(x => x.Count) == _waitCount.ReadLock(x => x))
            {
                ContinueEnumerator(false);
            }
        }
Пример #2
0
 public IEnumerator <KeyValuePair <TKey, TValue> > GetEnumerator()
 {
     return(_collection.ReadLock(x => x.GetEnumerator()));
 }