-
I read the implementation of FifoBuffer, and see the read/write pos is protected by atomic, if it means the Fifobuffer is thread safe? |
Beta Was this translation helpful? Give feedback.
Answered by
dturner
Sep 22, 2021
Replies: 1 comment
-
Looking at the code it looks like |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
philburk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looking at the code it looks like
FifoBuffer
is thread-safe for single-reader and single-writer only. If you have more than one reader or writer thread it'll break.