We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Incrementing and decrementing of the reference count in rtcan_msg_t is not atomic and therefore not thread safe.
rtcan_msg_t
Reference count implemented in thread-safe manner.
The text was updated successfully, but these errors were encountered:
Possibly useful: https://nullprogram.com/blog/2015/02/17/
We are building with C11, so we should be able to make use of stdatomic.h.
stdatomic.h
Sorry, something went wrong.
stdatomic.h has been added as part of #18. The relevant documentation is here.
I think what we need to do is:
atomic_uint
atomic_store
atomic_load
atomic_fetch_add
atomic_fetch_sub
yes, working on it. Thanks!
kruti99
No branches or pull requests
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: