diff options
author | Craig Tiller <ctiller@google.com> | 2015-12-09 16:10:28 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-12-09 16:10:28 -0800 |
commit | 97b51c06adfb232da404bb432331c905276ee7ff (patch) | |
tree | 416b55863152aa896e0b0e02da1c7a3b15aa264c /src | |
parent | f9263bcfcd21efce71e90a81be96e58dd03686fc (diff) |
Cover more of workqueue
Diffstat (limited to 'src')
-rw-r--r-- | src/core/iomgr/workqueue_posix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/iomgr/workqueue_posix.c b/src/core/iomgr/workqueue_posix.c index 2e30178131..d2a1c34612 100644 --- a/src/core/iomgr/workqueue_posix.c +++ b/src/core/iomgr/workqueue_posix.c @@ -103,6 +103,9 @@ void grpc_workqueue_add_to_pollset(grpc_exec_ctx *exec_ctx, void grpc_workqueue_flush(grpc_exec_ctx *exec_ctx, grpc_workqueue *workqueue) { gpr_mu_lock(&workqueue->mu); + if (grpc_closure_list_empty(workqueue->closure_list)) { + grpc_wakeup_fd_wakeup(&workqueue->wakeup_fd); + } grpc_closure_list_move(&exec_ctx->closure_list, &workqueue->closure_list); gpr_mu_unlock(&workqueue->mu); } |