aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr/workqueue_posix.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-01-28 13:53:40 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-01-28 13:53:40 -0800
commit6c39686dfa4307bb38ca0d3af78f7a72413d0198 (patch)
treea4e3eecadab8e9c60b31f8dd76ee9b647f2164b9 /src/core/iomgr/workqueue_posix.c
parentddd91dbb42f6f52655738c6520548d04ea5f8468 (diff)
Preparatory changes for work shedding
- cleanup: change grpc_iomgr_cb_func to take a bool instead of int success - cleanup: follow through with iomgr callback scheduling functions - prepare: add a workqueue to offload to to grpc_exec_ctx_enqueue* functions
Diffstat (limited to 'src/core/iomgr/workqueue_posix.c')
-rw-r--r--src/core/iomgr/workqueue_posix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/iomgr/workqueue_posix.c b/src/core/iomgr/workqueue_posix.c
index d2a1c34612..2d490259f7 100644
--- a/src/core/iomgr/workqueue_posix.c
+++ b/src/core/iomgr/workqueue_posix.c
@@ -45,7 +45,7 @@
#include "src/core/iomgr/fd_posix.h"
-static void on_readable(grpc_exec_ctx *exec_ctx, void *arg, int success);
+static void on_readable(grpc_exec_ctx *exec_ctx, void *arg, bool success);
grpc_workqueue *grpc_workqueue_create(grpc_exec_ctx *exec_ctx) {
char name[32];
@@ -110,7 +110,7 @@ void grpc_workqueue_flush(grpc_exec_ctx *exec_ctx, grpc_workqueue *workqueue) {
gpr_mu_unlock(&workqueue->mu);
}
-static void on_readable(grpc_exec_ctx *exec_ctx, void *arg, int success) {
+static void on_readable(grpc_exec_ctx *exec_ctx, void *arg, bool success) {
grpc_workqueue *workqueue = arg;
if (!success) {