|
|
@ -199,11 +199,11 @@ static void destroy_channel(void *p, int ok) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifdef GRPC_CHANNEL_REF_COUNT_DEBUG |
|
|
|
#ifdef GRPC_CHANNEL_REF_COUNT_DEBUG |
|
|
|
void grpc_channel_internal_unref(grpc_channel *c, const char *reason) { |
|
|
|
void grpc_channel_internal_unref(grpc_channel *channel, const char *reason) { |
|
|
|
gpr_log(GPR_DEBUG, "CHANNEL: unref %p %d -> %d [%s]", c, c->refs.count, |
|
|
|
gpr_log(GPR_DEBUG, "CHANNEL: unref %p %d -> %d [%s]", channel,
|
|
|
|
c->refs.count - 1, reason); |
|
|
|
channel->refs.count, channel->refs.count - 1, reason); |
|
|
|
#else |
|
|
|
#else |
|
|
|
void grpc_channel_internal_unref(grpc_channel *c) { |
|
|
|
void grpc_channel_internal_unref(grpc_channel *channel) { |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
if (gpr_unref(&channel->refs)) { |
|
|
|
if (gpr_unref(&channel->refs)) { |
|
|
|
channel->destroy_closure.cb = destroy_channel; |
|
|
|
channel->destroy_closure.cb = destroy_channel; |
|
|
|