Make folly::detail::CacheLocality portable on apple
authorFrancis Ma <fma@fb.com>
Wed, 27 Jan 2016 22:37:05 +0000 (14:37 -0800)
committerfacebook-github-bot-0 <folly-bot@fb.com>
Wed, 27 Jan 2016 23:20:28 +0000 (15:20 -0800)
commitdbf7c3d20fcfb28b260c7ecce9149f2cf8c37f22
tree7caa2d44b21f0b433b1d880d2871d868a049c7f3
parent94174b55501a035ca9676bb4b3b70717ab455152
Make folly::detail::CacheLocality portable on apple

Summary:
This is one of the series steps to port folly::future on ios. Apple doesn't support __thread. Adding a HashingThreadId as a fallback
on apple.

Reviewed By: nbronson

Differential Revision: D2832068

fb-gh-sync-id: c3389245f3c0bbd36de6260680f7ac6110b3206c
folly/Portability.h
folly/detail/CacheLocality.cpp
folly/detail/CacheLocality.h
folly/test/CacheLocalityTest.cpp