From fa8aa6df10bcb83c049779603811bef094e8e32e Mon Sep 17 00:00:00 2001 From: Juanli Shen Date: Thu, 2 Aug 2018 14:49:46 -0700 Subject: [PATCH] Update grpc.h comment --- include/grpc/grpc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h index f0eb2c0121b..3245aa55807 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