Fix a data race found by TSAN in folly::fibers::Baton
authorMartin Martin <mcm@fb.com>
Thu, 9 Jun 2016 18:53:14 +0000 (11:53 -0700)
committerFacebook Github Bot 1 <facebook-github-bot-1-bot@fb.com>
Thu, 9 Jun 2016 19:08:37 +0000 (12:08 -0700)
commite967876f1167e630263555c985c4723f7df9167a
treee55e31595e53be6478f0787c0f0781aa88932d8d
parent3619ec97dd338fea1979f18cc3407ca4dc4aefab
Fix a data race found by TSAN in folly::fibers::Baton

Summary: Fix a data race found by TSAN in folly::fibers::Baton by changing a memory_order_relaxed to memory_order_acquire.  Nathan Bronson says that TSAN is correct and the C++ memory model requires _acquire here.

Reviewed By: andriigrynenko

Differential Revision: D3412519

fbshipit-source-id: bd0043b41d145e689a97fc7ef47aa6e116ea9194
folly/fibers/Baton.cpp