Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.

Implement core.atomic using gcc __atomic builtins, deprecating gcc.atomics #111

Merged
merged 1 commit into from
Jul 19, 2015

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Jun 30, 2015

Mapping enum MemoryOrder to C++11's memory_order in libstdc++.

@ibuclaw
Copy link
Member Author

ibuclaw commented Jul 4, 2015

It should be OK to remove the atomic fences in atomicLoad and atomicStore, and use a static assert for the invalid uses of atomic_load and atomic_store builtins.

@ibuclaw
Copy link
Member Author

ibuclaw commented Jul 19, 2015

@jpf91 - Any objections here?

@jpf91
Copy link
Contributor

jpf91 commented Jul 19, 2015

LGTM.

jpf91 added a commit that referenced this pull request Jul 19, 2015
Implement core.atomic using gcc __atomic builtins, deprecating gcc.atomics
@jpf91 jpf91 merged commit 70840c7 into D-Programming-GDC:master Jul 19, 2015
@ibuclaw ibuclaw deleted the atomics branch July 19, 2015 17:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants