std::atomicize MicroSpinLock.
authorKeith Adams <kma@fb.com>
Thu, 12 Feb 2015 23:52:39 +0000 (15:52 -0800)
committerAlecs King <int@fb.com>
Tue, 3 Mar 2015 03:17:51 +0000 (19:17 -0800)
commitc3ca39e2cdd69292f281c9ef09a8b225f72cfc87
treefccb51a9c0f8e200f90add54d3a7f1a16134b305
parentc2c47da2bc90ddc852cc102aaad562cb15229479
std::atomicize MicroSpinLock.

Summary:
A colleague at another company started making fun of
MicroSpinLock for its x86 assembly and ad hoc compiler memory
barriers. Use C++11 (which wasn't really a thing at the time I wrote
this).

Test Plan: folly's runtests. What else would we like?

Reviewed By: andrei.alexandrescu@fb.com

Subscribers: folly-diffs@, yfeldblum

FB internal diff: D1841563

Signature: t1:1841563:1423780458:a447c081fbd72e3420b23e95dcf26575c9a06798
folly/SmallLocks.h
folly/test/SmallLocksTest.cpp