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

added memory barriers
author cin
date Fri, 26 Sep 2014 03:32:34 +0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
80
4f20870d0816 added memory barriers
cin
parents:
diff changeset
1 using System;
4f20870d0816 added memory barriers
cin
parents:
diff changeset
2
4f20870d0816 added memory barriers
cin
parents:
diff changeset
3 namespace Implab {
4f20870d0816 added memory barriers
cin
parents:
diff changeset
4 /*public struct SyncPoolWrapper<T> : IDisposable {
4f20870d0816 added memory barriers
cin
parents:
diff changeset
5 readonly T m_value;
4f20870d0816 added memory barriers
cin
parents:
diff changeset
6 readonly SyncPool<T> m_pool;
4f20870d0816 added memory barriers
cin
parents:
diff changeset
7
4f20870d0816 added memory barriers
cin
parents:
diff changeset
8 internal SyncPoolWrapper(T value, SyncPool<T> pool) {
4f20870d0816 added memory barriers
cin
parents:
diff changeset
9 m_value = value;
4f20870d0816 added memory barriers
cin
parents:
diff changeset
10 m_pool = pool;
4f20870d0816 added memory barriers
cin
parents:
diff changeset
11 }
4f20870d0816 added memory barriers
cin
parents:
diff changeset
12
4f20870d0816 added memory barriers
cin
parents:
diff changeset
13 public T Value {
4f20870d0816 added memory barriers
cin
parents:
diff changeset
14 get { return m_value; }
4f20870d0816 added memory barriers
cin
parents:
diff changeset
15 }
4f20870d0816 added memory barriers
cin
parents:
diff changeset
16
4f20870d0816 added memory barriers
cin
parents:
diff changeset
17 #region IDisposable implementation
4f20870d0816 added memory barriers
cin
parents:
diff changeset
18 public void Dispose() {
4f20870d0816 added memory barriers
cin
parents:
diff changeset
19 m_pool.Release(m_value);
4f20870d0816 added memory barriers
cin
parents:
diff changeset
20 }
4f20870d0816 added memory barriers
cin
parents:
diff changeset
21 #endregion
4f20870d0816 added memory barriers
cin
parents:
diff changeset
22 }*/
4f20870d0816 added memory barriers
cin
parents:
diff changeset
23 }
4f20870d0816 added memory barriers
cin
parents:
diff changeset
24