Added asm_volatile_memory
authorOrvid King <blah38621@gmail.com>
Wed, 29 Jul 2015 18:36:32 +0000 (11:36 -0700)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Wed, 29 Jul 2015 20:22:11 +0000 (13:22 -0700)
commitd6a6bb23e459154202c2d32d50f5ac2d1e887e56
tree5468c52ca33ad699f8d80a30d980b6635b32c865
parent65220fefdfd7fa2595e420baa784319e32ffab2e
Added asm_volatile_memory

Summary: This adds `asm_volatile_memory`, which goes along with the same style used by `asm_volatile_pause`.
This also switches the two places in `RWSpinLock.h` that were using inline assembly for this to use the new functions instead.
Closes #260

Reviewed By: @yfeldblum

Differential Revision: D2283541

Pulled By: @sgolemon
folly/Portability.h
folly/RWSpinLock.h