Generalize FOLLY_SPIN_WAIT to use Portability methods
authorOrvid King <blah38621@gmail.com>
Fri, 31 Jul 2015 19:43:41 +0000 (12:43 -0700)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Fri, 31 Jul 2015 20:22:26 +0000 (13:22 -0700)
commitd383a1167cca0599b5ca9053f4f5ade55a7b50a5
tree6a5ae221cda410266bab3f87ce986f13295fe4e5
parentf02969dfd3b7a9ac0b0cc8d8f84a12f92bb7ca7e
Generalize FOLLY_SPIN_WAIT to use Portability methods

Summary: Improves MSVC support.
Closes #274

Note that this diff has been heavily modified from @Orvid's original PR by @yfeldblum and @sgolemon

Reviewed By: @yfeldblum

Differential Revision: D2284035

Pulled By: @sgolemon
folly/AtomicHashArray-inl.h
folly/AtomicHashMap-inl.h
folly/detail/AtomicHashUtils.h