diff Implab/Parallels/WorkerPool.cs @ 119:2573b562e328 v2

Promises rewritten, added improved version of AsyncQueue
author cin
date Sun, 11 Jan 2015 19:13:02 +0300
parents 4c0e5ef99986
children 471f596b2603
line wrap: on
line diff
--- a/Implab/Parallels/WorkerPool.cs	Sun Dec 28 16:09:03 2014 +0300
+++ b/Implab/Parallels/WorkerPool.cs	Sun Jan 11 19:13:02 2015 +0300
@@ -6,7 +6,7 @@
 namespace Implab.Parallels {
     public class WorkerPool : DispatchPool<Action> {
 
-        MTQueue<Action> m_queue = new MTQueue<Action>();
+        AsyncQueue<Action> m_queue = new AsyncQueue<Action>();
         int m_queueLength = 0;
         readonly int m_threshold = 1;