aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/grpc.h
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreek@google.com>2018-08-06 10:46:12 -0700
committerGravatar Sree Kuchibhotla <sreek@google.com>2018-08-06 10:46:12 -0700
commita21ab01420e6eb2eea7b96f4ebf15227befd4111 (patch)
treebda204f6dee672ce313b4a662fe90cec1f16ef3f /include/grpc/grpc.h
parent9ce673f86176a203811c0429872a2acf639f5285 (diff)
parent26762216bc26cb23921699bf86fd859289f70819 (diff)
Merge branch 'master' into rq-threads-2
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 eb0251443c..c54e884439 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