8000 Merge atomic counter inc/dec functions and use them consistently by NickBarnes · Pull Request #3796 · oxcaml/oxcaml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Merge atomic counter inc/dec functions and use them consistently #3796

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NickBarnes
Copy link
Contributor

This resurrects #3644 (reverted in #3781) with a very slight tweak to ensure that #include "caml/misc.h" brings in atomic_uintnat. There's no particular reason to expect that it should, but it has done in the past and some code out there depends on it. There's now a circular dependency: misc.h gets atomic_uintnat from camlatomic.h and camlatomic.h gets CAMLassert from misc.h. Resolved by moving the #include "camlatomic.h" down into the guts of misc.h.
In an ideal world we wouldn't have a file called misc.h.

…aml#3644)

Merge atomic counter inc/dec functions and use them consistently.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0