-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this library thread safe? #7
Comments
It may work, depending on your compiler and your CPU architecture, but I would not depend on it. The only way to do this portably and safely would be to add |
(Apparently C11 may make this possible as well? See #4) |
There are many more changes than that required to guarantee that this implementation will work in a multi-threaded program, I’m afraid. It may happen to work for you on a particular CPU when compiled with a particular compiler, but it’s not something you should depend on. As an aside, you can disable |
I use these: https://github.com/wizard97/Embedded_RingBuf_CPP -- it works fine. |
Can it be used in a multi-producer and multi-consumer thread environment?
The text was updated successfully, but these errors were encountered: