Only try to use the membarrier on Linux
authorChristopher Dykes <cdykes@fb.com>
Tue, 26 Jul 2016 22:52:13 +0000 (15:52 -0700)
committerFacebook Github Bot 5 <facebook-github-bot-5-bot@fb.com>
Tue, 26 Jul 2016 22:53:46 +0000 (15:53 -0700)
commitc6476cb3c688c1a76f401ace9b4441a6f7c95450
tree6d21763cea868868b196f2f2430278a56df9fd0b
parent6d9473d8c3aeddeebc574be309ad2d5d3bb765f7
Only try to use the membarrier on Linux

Summary: It doesn't exist anywhere else, and `syscall` isn't even defined on Windows, so this completely failed to compile before.

Reviewed By: yfeldblum

Differential Revision: D3623382

fbshipit-source-id: 302093ddc96d6465e0dcc1883747229a7fb25a84
folly/portability/SysMembarrier.cpp