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

Replace boost::atomic with std::atomic (where possible) #2782

Merged
merged 4 commits into from Aug 30, 2017

Conversation

K-ballo
Copy link
Member

@K-ballo K-ballo commented Jul 24, 2017

No description provided.

macro(hpx_check_for_cxx11_std_atomic)
add_hpx_config_test(HPX_WITH_CXX11_ATOMIC
SOURCE cmake/tests/cxx11_std_atomic.cpp
LIBRARIES "-latomic"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this get in the way on platforms not supporting libatomic?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It somehow doesn't, but I don't really understand why that is the case.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it is fine as long as the compiler only warns for unknown arguments and doesn't fail if it can't find the library to link against.

Naios added a commit to Naios/hpx that referenced this pull request Jul 25, 2017
Naios added a commit to Naios/hpx that referenced this pull request Jul 27, 2017
@K-ballo K-ballo force-pushed the std-atomic-lite branch 2 times, most recently from baf4deb to f92abdc Compare July 31, 2017 23:25
@K-ballo K-ballo force-pushed the std-atomic-lite branch 3 times, most recently from 7e1e084 to 7a1ff1a Compare August 15, 2017 18:47
@hkaiser
Copy link
Member

hkaiser commented Aug 16, 2017

@K-ballo should we go ahead and merge this - or are you looking for a solution to the -latomic issue discussed above?

@K-ballo
Copy link
Member Author

K-ballo commented Aug 16, 2017

Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, Agustin! LGTM!

@sithhell sithhell merged commit 56ff70a into master Aug 30, 2017
@sithhell sithhell deleted the std-atomic-lite branch August 30, 2017 06:30
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.

None yet

3 participants