Change 20958

ShadauxCat (ShadauxCat)
ShadauxCat committed this change into //guest/ShadauxCat/Sprawl/Mainline under Review 20959
View Review
Download .zip
New memory management startegy for ConcurrentQueue that eliminates the need for traditional reference counting and now uses a decrement-only counter to reliably clean up memory without stomping on any other threads.
The removal of the reference counting, and the movement of the buffer capacity check to a member variable on the queue itself, has resulted in a performance increase of roughly 20-25% and eliminated a very rare accounting error.

Also cleaned up the comments and removed a commented-out alternative implementation of Dequeue().

#review-20959 post-commit
  • Files 2
  • Comments 0
2 edited 0 added 0 deleted
UnitTests/UnitTests_ConcurrentQueue.cpp#5
Loading...
collections/ConcurrentQueue.hpp#4
Loading...
Tip: Use n and p to cycle through the changes.