Add CachelinePadded<T> to folly.
authorDavid Goldblatt <davidgoldblatt@fb.com>
Fri, 26 Aug 2016 19:40:58 +0000 (12:40 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Fri, 26 Aug 2016 19:53:28 +0000 (12:53 -0700)
commite0ac799a799a72413a1b4b74b1b4d4f3cb64259d
tree5ce71b75758892d94d2329dd7811044bae525be9
parenta4430933e960ec0fc180af83267dd27664f28d53
Add CachelinePadded<T> to folly.

Summary:
This class allows easy insertion of padding bytes after an object to ensure
that two cacheline-padded elements of an array don't engage in false sharing.

Reviewed By: yfeldblum

Differential Revision: D3485144

fbshipit-source-id: a3ece1e34566b20f94ff9f66532b2386ab19a9b1
folly/CachelinePadded.h [new file with mode: 0644]
folly/Makefile.am
folly/detail/CachelinePaddedImpl.h [new file with mode: 0644]
folly/test/CachelinePaddedTest.cpp [new file with mode: 0644]