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
328 if (count > 0)328 if (count > 0)
329 {329 {
330 // Get an identifiable buffer object330 // Get an identifiable buffer object
331 identifiableBuffer = ReusableObjectPool<SourceIdentifiableBuffer>.Default.TakeObject();331 identifiableBuffer = FastObjectFactory<SourceIdentifiableBuffer>.CreateObjectFunction();
332 identifiableBuffer.Source = source;332 identifiableBuffer.Source = source;
333 identifiableBuffer.Count = count;333 identifiableBuffer.Count = count;
334 334
@@ -343,7 +343,7 @@ namespace GSF.Parsing · 8 unmodified lines
343 }343 }
344 catch344 catch
345 {345 {
346 // Return source buffer to object pool if we failed to queue it for processing346 // Properly dispose of the source buffer if we failed to queue it for processing
347 if ((object)identifiableBuffer != null)347 if ((object)identifiableBuffer != null)
348 identifiableBuffer.Dispose();348 identifiableBuffer.Dispose();
349 349
@@ -430,7 +430,7 @@ namespace GSF.Parsing · 80 unmodified lines
430 }430 }
431 finally431 finally
432 {432 {
433 // Dispose of source buffers - this returns buffers to pool433 // Dispose of source buffers
434 if ((object)buffers != null)434 if ((object)buffers != null)
435 {435 {
436 foreach (SourceIdentifiableBuffer buffer in buffers)436 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