Fix memory ordering for EventBase::isRunning().
Summary: Technically speaking the contract of isRunning() is unclear on whether it can be used as a synchronization mechanism; it could, e.g. be used solely for diagnostics purposes, in which case memory_order_relaxed would be enough. But it is used at least to implement waitUntilRunning(), so memory_order_acquire/memory_order_release is needed to achieve proper synchronization. Reviewed By: yfeldblum Differential Revision: D26436697 fbshipit-source-id: 2be07c473e1cb286e6044fa677304816921e888d
Showing
Please register or sign in to comment