This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Emulation of atomic builtins for MSVC
AbandonedPublic

Authored by K-ballo on Aug 29 2014, 12:09 PM.

Details

Summary

MSVC does not implement the GCC atomic builtins. This patch emulates those needed by libc++ by forwarding to MS's interlocked intrinsic functions.

Diff Detail

Event Timeline

K-ballo updated this revision to Diff 13099.Aug 29 2014, 12:09 PM
K-ballo retitled this revision from to [libcxx] Emulation of atomic builtins for MSVC.
K-ballo updated this object.
K-ballo edited the test plan for this revision. (Show Details)
K-ballo added reviewers: mclow.lists, EricWF, majnemer.
K-ballo added a subscriber: Unknown Object (MLST).
K-ballo updated this revision to Diff 13123.Aug 30 2014, 7:26 AM

Use _LIBCPP_ALWAYS_INLINE as it seems a better choice.

Waiting for VS2015RTM

K-ballo abandoned this revision.Oct 12 2017, 4:11 PM