History

GSF.Communication: Removed references to the ReusableObjectPool and added code to properly dispose of SocketAsyncEventArgs objects which are no longer used.

GSF.Core: Removed references to the ReusableObjectPool and marked ReusableObjectPool as obsolete.

StephenCWills committed 11 years ago

Commit 5b8b98a1 parent 31c8cf610 files · +231 −232Browse files

Showing the changes to Source/Libraries/GSF.Core/Parsing/MultiSourceFrameImageParserBase.cs (1 of 10 files). Show all

Unified · Split

Source/Libraries/GSF.Core/Parsing/MultiSourceFrameImageParserBase.cs+3−3
@@ -328,7 +328,7 @@ namespace GSF.Parsing · 327 unmodified lines
328328 if (count > 0)
329329 {
330330 // Get an identifiable buffer object
331− identifiableBuffer = ReusableObjectPool<SourceIdentifiableBuffer>.Default.TakeObject();
331+ identifiableBuffer = FastObjectFactory<SourceIdentifiableBuffer>.CreateObjectFunction();
332332 identifiableBuffer.Source = source;
333333 identifiableBuffer.Count = count;
334334
@@ -343,7 +343,7 @@ namespace GSF.Parsing · 8 unmodified lines
343343 }
344344 catch
345345 {
346− // Return source buffer to object pool if we failed to queue it for processing
346+ // Properly dispose of the source buffer if we failed to queue it for processing
347347 if ((object)identifiableBuffer != null)
348348 identifiableBuffer.Dispose();
349349
@@ -430,7 +430,7 @@ namespace GSF.Parsing · 80 unmodified lines
430430 }
431431 finally
432432 {
433− // Dispose of source buffers - this returns buffers to pool
433+ // Dispose of source buffers
434434 if ((object)buffers != null)
435435 {
436436 foreach (SourceIdentifiableBuffer buffer in buffers)

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