aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/client_config/subchannel.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-09-15 07:41:28 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-09-15 07:41:28 -0700
commit06a43f5d7e7ec90dfe133c5dfa1bb2c3acb85059 (patch)
tree3280f1a990f3bf9f8d86fe899fc70b66641482fc /src/core/client_config/subchannel.c
parent1701b093339fc124bd9c7f08eb7d8511799281ec (diff)
Progress towards workqueue transition
Diffstat (limited to 'src/core/client_config/subchannel.c')
-rw-r--r--src/core/client_config/subchannel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/client_config/subchannel.c b/src/core/client_config/subchannel.c
index ca52c75beb..0718ffbb8c 100644
--- a/src/core/client_config/subchannel.c
+++ b/src/core/client_config/subchannel.c
@@ -76,6 +76,7 @@ typedef struct waiting_for_connect {
struct grpc_subchannel {
grpc_connector *connector;
+ grpc_workqueue *workqueue;
/** non-transport related channel filters */
const grpc_channel_filter **filters;
@@ -575,7 +576,7 @@ static void publish_transport(grpc_subchannel *c) {
connectivity_state_changed_locked(c, "connected");
while ((w4c = c->waiting)) {
c->waiting = w4c->next;
- grpc_iomgr_add_callback(&w4c->continuation);
+ grpc_workqueue_push(c->workqueue, &w4c->continuation, 1);
}
gpr_mu_unlock(&c->mu);