Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_GRPC_LIBRARY_H
20 #define GRPCPP_IMPL_GRPC_LIBRARY_H
34 explicit GrpcLibrary(
bool call_grpc_init =
true) : grpc_init_called_(false) {
37 grpc_init_called_ =
true;
41 if (grpc_init_called_) {
47 bool grpc_init_called_;
53 #endif // GRPCPP_IMPL_GRPC_LIBRARY_H
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
GrpcLibrary(bool call_grpc_init=true)
Definition: grpc_library.h:34
virtual ~GrpcLibrary()
Definition: grpc_library.h:40
Classes that require gRPC to be initialized should inherit from this class.
Definition: grpc_library.h:32
GRPCAPI void grpc_init(void)
Initialize the grpc library.
GRPCAPI void grpc_shutdown(void)
Shut down the grpc library.