diff options
author | Yang Gao <yangg@google.com> | 2015-04-23 16:35:24 -0700 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-04-24 13:09:40 -0700 |
commit | c4b6ffb1b6aa9fb3c5fbf15a5e7e2862cfc4624c (patch) | |
tree | d82ed627e961634d64ba5f1001c502c8e4b974e3 /include/grpc++/completion_queue.h | |
parent | 3afd92ff511f52db3ecf892d9af65053323c89cb (diff) |
Add a GrpcLibrary class to wrap grpc_init and grpc_shutdown and convert all the tests to init/shutdown free.
Diffstat (limited to 'include/grpc++/completion_queue.h')
-rw-r--r-- | include/grpc++/completion_queue.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/grpc++/completion_queue.h b/include/grpc++/completion_queue.h index e6a8c6fe55..0a2a7687b7 100644 --- a/include/grpc++/completion_queue.h +++ b/include/grpc++/completion_queue.h @@ -36,6 +36,7 @@ #include <chrono> #include <grpc++/impl/client_unary_call.h> +#include <grpc++/impl/grpc_library.h> #include <grpc/support/time.h> struct grpc_completion_queue; @@ -71,11 +72,11 @@ class CompletionQueueTag { }; // grpc_completion_queue wrapper class -class CompletionQueue { +class CompletionQueue : public GrpcLibrary { public: CompletionQueue(); explicit CompletionQueue(grpc_completion_queue* take); - ~CompletionQueue(); + ~CompletionQueue() GRPC_OVERRIDE; // Tri-state return for AsyncNext: SHUTDOWN, GOT_EVENT, TIMEOUT enum NextStatus { SHUTDOWN, GOT_EVENT, TIMEOUT }; |