Don't use FOLLY_TLS on Android
authorSean Cannella <seanc@fb.com>
Tue, 30 Dec 2014 18:01:11 +0000 (10:01 -0800)
committerAjit Banerjee <ajitb@fb.com>
Wed, 7 Jan 2015 20:24:35 +0000 (12:24 -0800)
commitb7912274c8c83eba09064ad943359252a32eeb85
treec2cfebc61f39a1e68a0918a226e0c3e8b82fc9ab
parent821c5d75784e8cae2bf30bb7a3e759de580d44cb
Don't use FOLLY_TLS on Android

Summary:
emutls as far as StaticMeta needs to use it is broken on
Android as well due to unspecified pthread_key cleanup order between the
emulated __thread and our manual uses of it. Use the alternative that we
use on __APPLE__ there as well.

Test Plan: compiled and ran consuming code on Android

Reviewed By: dancol@fb.com

Subscribers: fma, shikong, kmdent, benyluo, ranjeeth, subodh, folly-diffs@

FB internal diff: D1760569

Tasks: 52657545907613

Signature: t1:1760569:1419955865:afe8f35dadda85393492ac9331e9f62a74f4fdad
folly/Portability.h
folly/detail/ThreadLocalDetail.h