grpc.io
grpc.io copied to clipboard
Update async.md
In multithreaded implementations, status_ needs to be updated before instructions that lead to CallData being put back into the completion queue. Otherwise, a race condition can occur where thread_1 picks up a Call Data instance that is intended to execute the current state (i.e. FINISH) but instead executes the previous state (i.e. PROCESS) because the status was not updated yet by thread_2.
The committers listed above are authorized under a signed CLA.
- :white_check_mark: login: abuhelos / name: Andrew Buhelos (8d149886c8038ebd9049147acc55bbd7b8216577)
@ctiller Can you please review this ?