Make TurnSequencer non-x86-safe
authorDelyan Kratunov <delyank@fb.com>
Fri, 29 May 2015 00:31:09 +0000 (17:31 -0700)
committerNoam Lerner <noamler@fb.com>
Wed, 3 Jun 2015 16:51:08 +0000 (09:51 -0700)
commit8b9a09ce4320290b698f5a7804f25548ca85d10f
treecfb6e5469afb402c64f71cc22686c3486243b37a
parent7a4c7813e2ea74b19fb2872b4f43a6ee304e1d49
Make TurnSequencer non-x86-safe

Summary:
`TurnSequencer` uses inline assembly, which obviously won't work on ARM.
Guard said assembly to x86{,_64} targets.

Test Plan:
Added an always-false `static_assert` to the `ifdef` block, confirmed it gets
triggered (i.e., we're not removing the `pause` on x86_64).

Reviewed By: ngbronson@fb.com

Subscribers: folly-diffs@, yfeldblum, chalfant

FB internal diff: D2069320

Signature: t1:2069320:1431663264:3b3fb4282cf2b755f9b26c76b608b91ff665e226
folly/detail/TurnSequencer.h