-
Notifications
You must be signed in to change notification settings - Fork 0
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
bug: reference counter increment/decrement not atomic #6
Comments
Possibly useful: https://nullprogram.com/blog/2015/02/17/ We are building with C11, so we should be able to make use of |
I think what we need to do is:
|
yes, working on it. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Incrementing and decrementing of the reference count in
rtcan_msg_t
is not atomic and therefore not thread safe.Expected Behaviour
Reference count implemented in thread-safe manner.
Additional Notes
The text was updated successfully, but these errors were encountered: