joaoportela / CircularBuffer-CSharp

A simple, single file, implementation of a circular buffer in C#.
The Unlicense
224 stars 45 forks source link

Locking for safe multi-threading. PopBackItem and PopFrontItem - returns items, then removes it. #71

Closed naualex2023 closed 5 months ago

joaoportela commented 5 months ago

Hey! Thanks for opening this merge request. Unfortunately making this multi-threaded would degrade the experience of single thread uses (because we would be doing unnecessary locks.

Feel free to fork this and create your own, though. I would be very happy if you found it useful :)