aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/grpc.h
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-08-02 17:25:09 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2018-08-02 17:25:09 -0700
commit6dfc4dd49ad8e35029d0a27b91fac61ef9d2959d (patch)
tree88eed20c466a9d7165d73b8ce88a2b8cebb86df9 /include/grpc/grpc.h
parent97a5bca26164b0f2c5763018f710ee75a9b817b1 (diff)
parent037d9ab177e4e5ae44b765886f3f2dcf44050413 (diff)
Merge branch 'master' of https://github.com/grpc/grpc into channelz-subchannels
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 942c83bcde..7c4307e83b 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