aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpcpp/impl/codegen
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-09-14 14:31:48 -0700
committerGravatar Vijay Pai <vpai@google.com>2018-09-14 16:56:19 -0700
commit73d89a66f90eb8cf5e9b8939690ebf7347fba147 (patch)
tree981d4116a945ee6cf2d81f44ca65a1ed5c87c05e /include/grpcpp/impl/codegen
parentff449831884eedb2519b43008c6ee13caf4d1853 (diff)
Catch exceptions in user callbacks
Diffstat (limited to 'include/grpcpp/impl/codegen')
-rw-r--r--include/grpcpp/impl/codegen/callback_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpcpp/impl/codegen/callback_common.h b/include/grpcpp/impl/codegen/callback_common.h
index 68c318d2b4..8b3ad66a8d 100644
--- a/include/grpcpp/impl/codegen/callback_common.h
+++ b/include/grpcpp/impl/codegen/callback_common.h
@@ -35,6 +35,10 @@ class CQCallbackInterface;
namespace grpc {
namespace internal {
+// The contract on these tags is that they are single-shot. They must be
+// constructed and then fired at exactly one point. There is no expectation
+// that they can be reused without reconstruction.
+
class CallbackWithStatusTag {
public:
// always allocated against a call arena, no memory free required