|
|
@ -176,6 +176,7 @@ grpc_millis ExecCtx::Now() { |
|
|
|
|
|
|
|
|
|
|
|
void ExecCtx::Run(const DebugLocation& location, grpc_closure* closure, |
|
|
|
void ExecCtx::Run(const DebugLocation& location, grpc_closure* closure, |
|
|
|
grpc_error* error) { |
|
|
|
grpc_error* error) { |
|
|
|
|
|
|
|
if (closure != nullptr) { |
|
|
|
#ifndef NDEBUG |
|
|
|
#ifndef NDEBUG |
|
|
|
if (closure->scheduled) { |
|
|
|
if (closure->scheduled) { |
|
|
|
gpr_log(GPR_ERROR, |
|
|
|
gpr_log(GPR_ERROR, |
|
|
@ -194,6 +195,9 @@ void ExecCtx::Run(const DebugLocation& location, grpc_closure* closure, |
|
|
|
GPR_ASSERT(closure->cb != nullptr); |
|
|
|
GPR_ASSERT(closure->cb != nullptr); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
exec_ctx_sched(closure, error); |
|
|
|
exec_ctx_sched(closure, error); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
GRPC_ERROR_UNREF(error); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} // namespace grpc_core
|
|
|
|
} // namespace grpc_core
|
|
|
|