aalhour / aalhour/C-Sharp-Algorithms

DataStructures.Lists. CircularBuffer is not thread safe.

Open
#169 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
6.2k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

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 !

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.