Beispiel #1
0
        public void Add(AsyncReply <T> reply)
        {
            lock (queueLock)
                list.Add(reply);

            resultReady = false;
            reply.Then(processQueue);
        }
Beispiel #2
0
 public void Add(AsyncReply reply)
 {
     if (!sealedBag)
     {
         results.Add(default(T));
         replies.Add(reply);
     }
     //results.Add(reply, default(T));
 }
Beispiel #3
0
 public void Remove(AsyncReply <T> reply)
 {
     lock (queueLock)
         list.Remove(reply);
     processQueue(default(T));
 }