Mercurial > pub > ImplabNet
comparison Implab/Components/ObjectPool.cs @ 251:7c7e9ad6fe4a v3
Prerelease version of RunnableComponent
Added draft messaging interfaces
Added more more helpers to Xml/SerializationHelpers
author | cin |
---|---|
date | Sun, 11 Feb 2018 00:49:51 +0300 |
parents | 2dcdee4c0810 |
children |
comparison
equal
deleted
inserted
replaced
250:9f63dade3a40 | 251:7c7e9ad6fe4a |
---|---|
24 protected ObjectPool() : this(Environment.ProcessorCount+1) { | 24 protected ObjectPool() : this(Environment.ProcessorCount+1) { |
25 | 25 |
26 } | 26 } |
27 | 27 |
28 protected ObjectPool(int size) { | 28 protected ObjectPool(int size) { |
29 Safe.ArgumentInRange(size,1,size,"size"); | 29 Safe.ArgumentInRange(size > 0, nameof(size)); |
30 | 30 |
31 m_size = size; | 31 m_size = size; |
32 } | 32 } |
33 | 33 |
34 /// <summary> | 34 /// <summary> |