Eliminate the atomic porability header's dependence on Windows.h
authorChristopher Dykes <cdykes@fb.com>
Thu, 4 Aug 2016 22:38:29 +0000 (15:38 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Thu, 4 Aug 2016 22:54:22 +0000 (15:54 -0700)
commit13310f283963dc559ac309f93692b2d0c5bdadf7
tree3764ec7a19ebb797cac0e9e5cd0bc8b76ee587b8
parentdb33d30722844457a675db2b5820da53a36b9dff
Eliminate the atomic porability header's dependence on Windows.h

Summary:
This is done by using the intrinsic directly instead.
This also marks the input parameter as `volatile`, to make it more clear that that's how it is handled by `_InterlockedExchangeAdd64`.

Reviewed By: yfeldblum

Differential Revision: D3671320

fbshipit-source-id: 6010085ec3b6952a3eb1e952965ec6ad87566db2
folly/portability/Atomic.h