HomePhabricator

[libc++] Replace __sync_* functions with __libcpp_atomic_* functions

Description

[libc++] Replace sync_* functions with libcpp_atomic_* functions

Summary:
This patch replaces sync_* with libcpp_atomic_* and adds a wrapper
function for __atomic_exchange to support _LIBCPP_HAS_NO_THREADS.

Reviewers: EricWF, jroelofs, mclow.lists, compnerd

Reviewed By: EricWF, compnerd

Subscribers: compnerd, efriedma, cfe-commits, joerg, llvm-commits

Differential Revision: https://reviews.llvm.org/D35235

Details

Committed
weimingzSep 19 2017, 4:18 PM
Reviewer
EricWF
Differential Revision
D35235: [libc++] Replace __sync_* functions with __libcpp_atomic_* functions
Branches
Unknown
Tags
Unknown