aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Nathaniel Manista <nathaniel@google.com>2015-02-18 13:27:04 -0800
committerGravatar Nathaniel Manista <nathaniel@google.com>2015-02-18 13:27:04 -0800
commitd50bf4d98aa5a42ebcae7c1c0efc459b0eb6d531 (patch)
tree0b20eaca801ab43d9555da8264f5e413aada6b78 /include
parent7326901767e0f12e27df8da7524d57ea53eb1fc2 (diff)
parenta0e34a0b905c0d7330bdf903d976d258704871a4 (diff)
Merge pull request #563 from ctiller/dox4
Expand init/destroy documentation
Diffstat (limited to 'include')
-rw-r--r--include/grpc/grpc.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index b33cc3da87..f2b84084bb 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -354,10 +354,18 @@ typedef struct grpc_op {
} data;
} grpc_op;
-/* Initialize the grpc library */
+/* Initialize the grpc library.
+ 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
+ library). */
void grpc_init(void);
-/* Shut down the grpc library */
+/* Shut down the grpc library.
+ 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
+ destroyed. */
void grpc_shutdown(void);
grpc_completion_queue *grpc_completion_queue_create(void);