Merge pull request #21255 from hcaseyal/thread_safety_comment

Add comment about thread safety to ServerContext IsCancelled()
pull/21259/head
hcaseyal 5 years ago committed by GitHub
commit a373140d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      include/grpcpp/impl/codegen/server_context_impl.h

@ -171,7 +171,7 @@ class ServerContext {
/// IsCancelled is always safe to call when using sync or callback API.
/// When using async API, it is only safe to call IsCancelled after
/// the AsyncNotifyWhenDone tag has been delivered.
/// the AsyncNotifyWhenDone tag has been delivered. Thread-safe.
bool IsCancelled() const;
/// Cancel the Call from the server. This is a best-effort API and

Loading…
Cancel
Save