folly: define FOLLY_SANITIZE_THREAD convenience macro for TSAN
authorKenny Yu <kennyyu@fb.com>
Mon, 6 Jun 2016 23:20:39 +0000 (16:20 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Mon, 6 Jun 2016 23:23:33 +0000 (16:23 -0700)
commit0c620c8f910f407314ff19f4b44c770fe938fe36
tree92a59a9adeb1a51a91ebccfb263ccd132961e8ed
parent58d507c161c5e8b097796fe5fb05ccc73c564d5c
folly: define FOLLY_SANITIZE_THREAD convenience macro for TSAN

Summary:
This defines the macro `FOLLY_SANITIZE_THREAD`, similar to `FOLLY_SANITIZE_ADDRESS`.

Note that gcc *just* landed support for the `__SANITIZE_THREAD__` macro two weeks
ago: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64354

Reviewed By: igorsugak

Differential Revision: D3389021

fbshipit-source-id: df6497a7741657c297ee812ed07cbae102b6810d
folly/CPortability.h