diff Implab/SyncPoolWrapper.cs @ 80:4f20870d0816 v2

added memory barriers
author cin
date Fri, 26 Sep 2014 03:32:34 +0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Implab/SyncPoolWrapper.cs	Fri Sep 26 03:32:34 2014 +0400
@@ -0,0 +1,24 @@
+using System;
+
+namespace Implab {
+    /*public struct SyncPoolWrapper<T> : IDisposable {
+        readonly T m_value;
+        readonly SyncPool<T> m_pool;
+
+        internal SyncPoolWrapper(T value, SyncPool<T> pool) {
+            m_value = value;
+            m_pool = pool;
+        }
+
+        public T Value {
+            get { return m_value; }
+        }
+
+        #region IDisposable implementation
+        public void Dispose() {
+            m_pool.Release(m_value);
+        }
+        #endregion
+    }*/
+}
+