diff Implab/ObjectPool.cs @ 119:2573b562e328 v2

Promises rewritten, added improved version of AsyncQueue
author cin
date Sun, 11 Jan 2015 19:13:02 +0300
parents 8beee0d11de6
children
line wrap: on
line diff
--- a/Implab/ObjectPool.cs	Sun Dec 28 16:09:03 2014 +0300
+++ b/Implab/ObjectPool.cs	Sun Jan 11 19:13:02 2015 +0300
@@ -18,7 +18,7 @@
     /// <para>Пул поддерживает обращения сразу из нескольких потоков.</para>
     /// </remarks>
     public abstract class ObjectPool<T> where T : class {
-        readonly MTQueue<WeakReference> m_queue = new MTQueue<WeakReference>();
+        readonly AsyncQueue<WeakReference> m_queue = new AsyncQueue<WeakReference>();
         readonly int m_size;
         int m_count = 0;