Skip to content

Commit e9b4e16

Browse files
committed
Declare ApplicationCallbackExecCtx at channel's core entry points
1 parent db932d8 commit e9b4e16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/lib/surface/channel.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,15 @@ char* grpc_channel_get_target(grpc_channel* channel) {
329329

330330
void grpc_channel_get_info(grpc_channel* channel,
331331
const grpc_channel_info* channel_info) {
332+
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
332333
grpc_core::ExecCtx exec_ctx;
333334
grpc_channel_element* elem =
334335
grpc_channel_stack_element(CHANNEL_STACK_FROM_CHANNEL(channel), 0);
335336
elem->filter->get_channel_info(elem, channel_info);
336337
}
337338

338339
void grpc_channel_reset_connect_backoff(grpc_channel* channel) {
340+
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
339341
grpc_core::ExecCtx exec_ctx;
340342
GRPC_API_TRACE("grpc_channel_reset_connect_backoff(channel=%p)", 1,
341343
(channel));
@@ -386,6 +388,7 @@ grpc_call* grpc_channel_create_call(grpc_channel* channel,
386388
grpc_slice method, const grpc_slice* host,
387389
gpr_timespec deadline, void* reserved) {
388390
GPR_ASSERT(!reserved);
391+
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
389392
grpc_core::ExecCtx exec_ctx;
390393
grpc_call* call = grpc_channel_create_call_internal(
391394
channel, parent_call, propagation_mask, cq, nullptr,
@@ -449,6 +452,7 @@ void* grpc_channel_register_call(grpc_channel* channel, const char* method,
449452
"grpc_channel_register_call(channel=%p, method=%s, host=%s, reserved=%p)",
450453
4, (channel, method, host, reserved));
451454
GPR_ASSERT(!reserved);
455+
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
452456
grpc_core::ExecCtx exec_ctx;
453457

454458
grpc_core::MutexLock lock(&channel->registration_table->mu);
@@ -481,6 +485,7 @@ grpc_call* grpc_channel_create_registered_call(
481485
registered_call_handle, deadline.tv_sec, deadline.tv_nsec,
482486
(int)deadline.clock_type, reserved));
483487
GPR_ASSERT(!reserved);
488+
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
484489
grpc_core::ExecCtx exec_ctx;
485490
grpc_call* call = grpc_channel_create_call_internal(
486491
channel, parent_call, propagation_mask, completion_queue, nullptr,
@@ -532,6 +537,7 @@ void grpc_channel_destroy_internal(grpc_channel* channel) {
532537
}
533538

534539
void grpc_channel_destroy(grpc_channel* channel) {
540+
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
535541
grpc_core::ExecCtx exec_ctx;
536542
grpc_channel_destroy_internal(channel);
537543
}

0 commit comments

Comments
 (0)