Mercurial > pub > ImplabNet
comparison Implab/SyncPoolWrapper.cs @ 80:4f20870d0816 v2
added memory barriers
author | cin |
---|---|
date | Fri, 26 Sep 2014 03:32:34 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
79:05e6468f066f | 80:4f20870d0816 |
---|---|
1 using System; | |
2 | |
3 namespace Implab { | |
4 /*public struct SyncPoolWrapper<T> : IDisposable { | |
5 readonly T m_value; | |
6 readonly SyncPool<T> m_pool; | |
7 | |
8 internal SyncPoolWrapper(T value, SyncPool<T> pool) { | |
9 m_value = value; | |
10 m_pool = pool; | |
11 } | |
12 | |
13 public T Value { | |
14 get { return m_value; } | |
15 } | |
16 | |
17 #region IDisposable implementation | |
18 public void Dispose() { | |
19 m_pool.Release(m_value); | |
20 } | |
21 #endregion | |
22 }*/ | |
23 } | |
24 |