aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/channel.c
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-05-28 16:27:39 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-05-31 12:48:44 -0700
commit284488b4347685a83f97b6123a8d7115bb8ee032 (patch)
treeab5c9a96ed3e0c38966f9db8fbb56673db20a76b /src/core/surface/channel.c
parent2738ae8c44786b8798d4b111e289b4baf1a134c6 (diff)
removed managed closures from server.c
Diffstat (limited to 'src/core/surface/channel.c')
-rw-r--r--src/core/surface/channel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/surface/channel.c b/src/core/surface/channel.c
index d018db7bb0..947011c613 100644
--- a/src/core/surface/channel.c
+++ b/src/core/surface/channel.c
@@ -61,7 +61,7 @@ struct grpc_channel {
gpr_mu registered_call_mu;
registered_call *registered_calls;
- grpc_iomgr_closure destroy_iocb;
+ grpc_iomgr_closure destroy_closure;
};
#define CHANNEL_STACK_FROM_CHANNEL(c) ((grpc_channel_stack *)((c) + 1))
@@ -194,9 +194,9 @@ static void destroy_channel(void *p, int ok) {
void grpc_channel_internal_unref(grpc_channel *channel) {
if (gpr_unref(&channel->refs)) {
- channel->destroy_iocb.cb = destroy_channel;
- channel->destroy_iocb.cb_arg = channel;
- grpc_iomgr_add_callback(&channel->destroy_iocb);
+ channel->destroy_closure.cb = destroy_channel;
+ channel->destroy_closure.cb_arg = channel;
+ grpc_iomgr_add_callback(&channel->destroy_closure);
}
}