(Wangle) Fix possible race in updating FSM state
authorHannes Roth <hannesr@fb.com>
Thu, 25 Jun 2015 15:44:29 +0000 (08:44 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 26 Jun 2015 18:45:38 +0000 (11:45 -0700)
commit11e76315877d544604687b8823d75d525b74a781
tree42d82a2322e19a67e33c15c67020c9d0b1343294
parente51d8547288a38a828a6110eb390fe19cc8be24c
(Wangle) Fix possible race in updating FSM state

Summary: Storing the new state could be a memory race according to C++ (but wasn't in practice). I only checked GCC though.

Reviewed By: @nbronson

Differential Revision: D2189287
folly/futures/detail/FSM.h