aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/grpc.h
diff options
context:
space:
mode:
authorGravatar Juanli Shen <juanlishen@google.com>2018-08-02 14:49:46 -0700
committerGravatar Juanli Shen <juanlishen@google.com>2018-08-02 15:00:05 -0700
commitfa8aa6df10bcb83c049779603811bef094e8e32e (patch)
treeef8f6ad94e5cf75fa73374ec77f6a10fc4d3aebc /include/grpc/grpc.h
parent16a836174307f8694a7f1cb9309091095add74e2 (diff)
Update grpc.h comment
Diffstat (limited to 'include/grpc/grpc.h')
-rw-r--r--include/grpc/grpc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index f0eb2c0121..3245aa5580 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -60,6 +60,8 @@ GRPCAPI void grpc_register_plugin(void (*init)(void), void (*destroy)(void));
/** Initialize the grpc library.
+ After it's called, a matching invocation to grpc_shutdown() is expected.
+
It is not safe to call any other grpc functions before calling this.
(To avoid overhead, little checking is done, and some things may work. We
do not warrant that they will continue to do so in future revisions of this
@@ -68,6 +70,9 @@ GRPCAPI void grpc_init(void);
/** Shut down the grpc library.
+ Before it's called, there should haven been a matching invocation to
+ grpc_init().
+
No memory is used by grpc after this call returns, nor are any instructions
executing within the grpc library.
Prior to calling, all application owned grpc objects must have been