-
Notifications
You must be signed in to change notification settings - Fork 75
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
Replace session pointer with refcount #322
Conversation
* fix: build tests only in c11 * fix: remove c11 macros from examples * feat: add a way to force c99 standard * ci: add a c99 compilation test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cppcheck (reported by Codacy) found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd really like that change to the structure of refcounts, but the rest is approved
62ed855
to
d4fb72b
Compare
afce929
to
7e9441a
Compare
Reopening of #320.
The entities
session
publisher
,subscriber
andqueryables
were sharing ownership of the same_z_session_t
pointer, this caused issues like #312. This PR replaces the session pointer with a refcounter on the session pointer.Had to modify how the refcount implementation was handled:
And renamed
pointer.h
/_sptr_t
torefcount.h
/_rc_t