diff options
author | 2016-07-18 16:30:58 -0700 | |
---|---|---|
committer | 2016-07-18 16:30:58 -0700 | |
commit | c76e48b8d38ed8d1c0359a3da2e60b87b93a99d9 (patch) | |
tree | f3c9e2b5e9f3d5345f6e46f07e6414262acd0377 /src/core/lib/iomgr/exec_ctx.h | |
parent | 9275d4067cfd9233edf2ae9a0fe1255c8c730f19 (diff) | |
parent | 2eebe29ec84ed6b2d5c64016b12e1782281d5a38 (diff) |
Merge remote-tracking branch 'upstream/master' into shut_down_acceptor_early
Diffstat (limited to 'src/core/lib/iomgr/exec_ctx.h')
-rw-r--r-- | src/core/lib/iomgr/exec_ctx.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/exec_ctx.h b/src/core/lib/iomgr/exec_ctx.h index 38f27d9b13..917f332f03 100644 --- a/src/core/lib/iomgr/exec_ctx.h +++ b/src/core/lib/iomgr/exec_ctx.h @@ -93,7 +93,11 @@ bool grpc_exec_ctx_flush(grpc_exec_ctx *exec_ctx); /** Finish any pending work for a grpc_exec_ctx. Must be called before * the instance is destroyed, or work may be lost. */ void grpc_exec_ctx_finish(grpc_exec_ctx *exec_ctx); -/** Add a closure to be executed at the next flush/finish point */ +/** Add a closure to be executed in the future. + If \a offload_target_or_null is NULL, the closure will be executed at the + next exec_ctx.{finish,flush} point. + If \a offload_target_or_null is non-NULL, the closure will be scheduled + against the workqueue, and a reference to the workqueue will be consumed. */ void grpc_exec_ctx_sched(grpc_exec_ctx *exec_ctx, grpc_closure *closure, grpc_error *error, grpc_workqueue *offload_target_or_null); |