Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AsyncNotifyWhenDone #2789

Merged
merged 5 commits into from
Aug 5, 2015
Merged

Add AsyncNotifyWhenDone #2789

merged 5 commits into from
Aug 5, 2015

Conversation

yang-g
Copy link
Member

@yang-g yang-g commented Aug 4, 2015

Fixes #2742

@yang-g
Copy link
Member Author

yang-g commented Aug 4, 2015

@a11r This is the API we discussed for async server side cancellation monitoring.

// Async only. Has to be called before the rpc starts.
// Returns the tag in completion queue when the rpc finishes.
// IsCancelled() can then be called to check whether the rpc was cancelled.
void AsyncNotifyWhenDone(void* tag) { async_notify_when_done_tag_ = tag; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's legal to have a NULL tag... we should probably also have a bool have_tag_ field here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ctiller
Copy link
Member

ctiller commented Aug 5, 2015

Sanity is failing (Jenkins, not mine).

@yang-g
Copy link
Member Author

yang-g commented Aug 5, 2015

Re-pushed.

ctiller added a commit that referenced this pull request Aug 5, 2015
@ctiller ctiller merged commit 832a8c1 into grpc:master Aug 5, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants