C-Sharp-Algorithms icon indicating copy to clipboard operation
C-Sharp-Algorithms copied to clipboard

DataStructures.Lists. CircularBuffer is not thread safe.

Open xuanyuan5005 opened this issue 2 years ago • 2 comments

DataStructures.Lists. CircularBuffer Now 1,CircularBuffer.Add used by Producer threads 2,CircularBuffer.Add.Pop used by Consumer threads

Producer and Consumer is two different threads,when write the _count at the same time, the Count is not the desired value !

xuanyuan5005 avatar Jan 28 '23 08:01 xuanyuan5005

Thanks for supporting the development of C# Algorithms with your first issue! We look forward to handling it.

github-actions[bot] avatar Jan 28 '23 08:01 github-actions[bot]

您好,您的邮件我已经收到,会尽快处理,谢谢!中建八局设计管理总院 胡伟

hoowee avatar Jan 28 '23 08:01 hoowee