-
Notifications
You must be signed in to change notification settings - Fork 621
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
'OSMemoryBarrier' is deprecated in macOS 10.12 #345
Comments
Feel free to patch conditionally. Thanks. |
Maybe we should support C++11 and use atomic on all platforms? |
But this would make us dependent on the C++ standard library on all platforms. C11 has a similar C API, may be we can use it if supported by platform/compiler and fallback to existing code otherwise? |
Right. Not sure if that's still a concern.
Whatever works. I do prefer not changing this much as it seems to have been working. |
What's suggested work item here? |
Someone familiar with the new C/C++ atomics adds support for them. It should be e.g. used by default when supported and else fall back to the existing implementations. I might give it a try at some point, unless some one beat me to it. |
There's an alternative approach in https://bugs.freedesktop.org/show_bug.cgi?id=90305 Let's give that one a try? I'll find some time to look into #486 as well. |
Also, to make TSan happy, we should replace |
My changes in #676 remove this warning by using the compiler primitives rather than the macOS APIs. |
Let's see how the bots like my implementation. |
Building with latest XCode I got lots of these warnings:
The text was updated successfully, but these errors were encountered: