Mercurial > pub > ImplabNet
comparison Implab/ComponentContainer.cs @ 119:2573b562e328 v2
Promises rewritten, added improved version of AsyncQueue
author | cin |
---|---|
date | Sun, 11 Jan 2015 19:13:02 +0300 |
parents | da56ba7b1aab |
children |
comparison
equal
deleted
inserted
replaced
118:e046a94eecb1 | 119:2573b562e328 |
---|---|
16 return _appContainer; | 16 return _appContainer; |
17 } | 17 } |
18 } | 18 } |
19 | 19 |
20 bool m_disposed; | 20 bool m_disposed; |
21 readonly MTQueue<IDisposable> m_components = new MTQueue<IDisposable>(); | 21 readonly AsyncQueue<IDisposable> m_components = new AsyncQueue<IDisposable>(); |
22 | 22 |
23 public void Add(IDisposable item) { | 23 public void Add(IDisposable item) { |
24 Safe.ArgumentNotNull(item, "item"); | 24 Safe.ArgumentNotNull(item, "item"); |
25 Thread.MemoryBarrier(); | 25 Thread.MemoryBarrier(); |
26 if (m_disposed) { | 26 if (m_disposed) { |