-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Move barrier macros from <atomic>
to <xatomic.h>
#3124
Move barrier macros from <atomic>
to <xatomic.h>
#3124
Conversation
But I guess they should be still `#undef`ed in `<atomic>`.
Strangely, some failures occured in formerly verified portions.
And mention <memory> in <xatomic.h>.
I really don't like this split of the |
The lack of undefs would normally break what's in vcruntime, however, that stuff is all C only, and the header will |
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 like this change; however, we should probably avoid making the stray formatting changes (approved anyways as it's trivial to revert them if they end up getting into main)
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for reorganizing this atomics code! ☢️ 😹 🎉 |
Towards #3048.
@MattStephanson @barcharcraz
I think we can include
<xatomic.h>
inlocale0.cpp
once this PR gets merged as<xatomic.h>
has been made a core header, and avoid the third copy of these macro definitions. This should have no undesired impact on the size of import library.I guess these macros should still be#undef
ed in<atomic>
, so I copied the comments in<atomic>
with modifications.The separated
#undef
directives in<atomic>
are being removed.