History

Added more code to GSF shared code project - moved PathHelper path validation function into FilePath

J. Ritchie Carroll committed 10 years ago

Commit e16ec441 parent 612a09672 files · +1523 −1481Browse files

Showing the changes to Source/Libraries/GSF.Core/ReusableObjectPool.cs (1 of 72 files). Show all

Unified · Split

Source/Libraries/GSF.Core/ReusableObjectPool.cs+2−2
@@ -280,7 +280,7 @@ namespace GSF · 279 unmodified lines
280 public void SetPoolSize(int size)280 public void SetPoolSize(int size)
281 {281 {
282 if (size < 1)282 if (size < 1)
283 throw new ArgumentOutOfRangeException("size", "pool size must at least be one");283 throw new ArgumentOutOfRangeException(nameof(size), "pool size must at least be one");
284 284
285 for (int i = 0; i < size - m_objectPool.Count; i++)285 for (int i = 0; i < size - m_objectPool.Count; i++)
286 {286 {
@@ -458,7 +458,7 @@ namespace GSF · 171 unmodified lines
458 public static void SetPoolSize(Type type, int size)458 public static void SetPoolSize(Type type, int size)
459 {459 {
460 if (size < 1)460 if (size < 1)
461 throw new ArgumentOutOfRangeException("size", "pool size must at least be one");461 throw new ArgumentOutOfRangeException(nameof(size), "pool size must at least be one");
462 462
463 // Get or create object pool associated with specified type463 // Get or create object pool associated with specified type
464 ConcurrentQueue<object> objectPool = s_objectPools.GetOrAdd(type, (objType) => new ConcurrentQueue<object>());464 ConcurrentQueue<object> objectPool = s_objectPools.GetOrAdd(type, (objType) => new ConcurrentQueue<object>());

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t