Fix a memory ordering issue in Baton::timedWaitThread.
Summary: The memory ordering when loading the `waiter_` atomic must be at least memory_order_acquire to ensure that anything sequenced after timedWaitThread happens before the corresponding post call. In fact, this is already the memory ordering used in the non-timed version Baton::waitThread. Differential Revision: D22901656 fbshipit-source-id: 8e8156bdfda02d6b26565b91054ef3cc59a28e8a
Showing
Please register or sign in to comment