Skip to content
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

Different implementation of atomic operation abstractions for gcc and clang? #259

Open
meyerj opened this issue Mar 2, 2018 · 1 comment

Comments

@meyerj
Copy link
Member

meyerj commented Mar 2, 2018

Today I stumbled across 94e3053, which added a preprocessor directive and switches to different implementations for atomic operations that are essential for lock-free buffer implementations.

I am not aware of the pros and cons of using the builtin intrinsics of gcc/clang compared to the custom platform-dependent implementations. But it would be worth to verify if Clang 3 and newer versions are still affected by the problem which triggered that patch back in 2011. I could not find any background information in the commit history, the Orocos forums or the old bug tracker.

@snrkiwi
Copy link
Contributor

snrkiwi commented Mar 4, 2018

I don't think that this is a problem with modern Clang, at least on OS/X or macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants