diff options
author | Muxi Yan <muxi@users.noreply.github.com> | 2018-05-22 10:12:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 10:12:38 -0700 |
commit | ba221d0423e61451b660b3d551c25cf155709285 (patch) | |
tree | 40e37ad629686a673e97b0dc2fd1f093595c07f4 /include | |
parent | 92ff0490edfcfdb082659fa13a10ce8857ddd48e (diff) | |
parent | 463e4d56193bbaec3977ce38fb8f0103d006794e (diff) |
Merge branch 'master' into prototype-cfstream
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/impl/codegen/fork.h | 8 | ||||
-rw-r--r-- | include/grpc/support/log.h | 6 | ||||
-rw-r--r-- | include/grpcpp/support/channel_arguments.h | 8 |
3 files changed, 17 insertions, 5 deletions
diff --git a/include/grpc/impl/codegen/fork.h b/include/grpc/impl/codegen/fork.h index baec7a2f10..555df3490f 100644 --- a/include/grpc/impl/codegen/fork.h +++ b/include/grpc/impl/codegen/fork.h @@ -37,12 +37,12 @@ * } */ -void grpc_prefork(); +void grpc_prefork(void); -void grpc_postfork_parent(); +void grpc_postfork_parent(void); -void grpc_postfork_child(); +void grpc_postfork_child(void); -void grpc_fork_handlers_auto_register(); +void grpc_fork_handlers_auto_register(void); #endif /* GRPC_IMPL_CODEGEN_FORK_H */ diff --git a/include/grpc/support/log.h b/include/grpc/support/log.h index b6fbbde23c..1837d4bd22 100644 --- a/include/grpc/support/log.h +++ b/include/grpc/support/log.h @@ -99,6 +99,12 @@ GPRAPI void gpr_set_log_function(gpr_log_func func); } \ } while (0) +#ifndef NDEBUG +#define GPR_DEBUG_ASSERT(x) GPR_ASSERT(x) +#else +#define GPR_DEBUG_ASSERT(x) +#endif + #ifdef __cplusplus } #endif diff --git a/include/grpcpp/support/channel_arguments.h b/include/grpcpp/support/channel_arguments.h index 1eead4e1a4..217929d4ac 100644 --- a/include/grpcpp/support/channel_arguments.h +++ b/include/grpcpp/support/channel_arguments.h @@ -70,7 +70,13 @@ class ChannelArguments { /// the resolver. void SetGrpclbFallbackTimeout(int fallback_timeout); - /// Set the socket mutator for the channel. + /// For client channel's, the socket mutator operates on + /// "channel" sockets. For server's, the socket mutator operates + /// only on "listen" sockets. + /// TODO(apolcyn): allow socket mutators to also operate + /// on server "channel" sockets, and adjust the socket mutator + /// object to be more speficic about which type of socket + /// it should operate on. void SetSocketMutator(grpc_socket_mutator* mutator); /// Set the string to prepend to the user agent. |