grpc.io icon indicating copy to clipboard operation
grpc.io copied to clipboard

Update async.md

Open abuhelos opened this issue 1 month ago • 2 comments

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.

abuhelos avatar Oct 24 '25 16:10 abuhelos

CLA Signed
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 ?

rajatnaik0405 avatar Oct 29 '25 06:10 rajatnaik0405