Use a simpler atomic state in Futures Core
Summary: [Folly] Use a simpler atomic state in Futures `Core` v.s. `FSM` which abstracts an atomic state plus a spin-lock. The `FSM` abstraction can be useful in more complex cases, but is not needed in the current case. All that is needed is a single barrier state, which is `Done` - setting callback and result happen before state transitions to `Done`, while invoking callback with result happens after state transitions to `Done`. Reviewed By: marshallcline Differential Revision: D8083703 fbshipit-source-id: 42d96b41cbdac5e7c42f3f8a661d5db3113655db
Showing
Please register or sign in to comment