diff options
author | Craig Tiller <ctiller@google.com> | 2015-08-05 12:54:51 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-08-05 12:54:51 -0700 |
commit | cf0e79638f44d3b52ab39f0996fee7e2dc594f72 (patch) | |
tree | 60bffe790ad49ec4063bf4b2b191a7c0bc6c7e10 /src/core/iomgr/wakeup_fd_pipe.c | |
parent | a529eca9475cf7aae3d5615d59918283fac7b602 (diff) | |
parent | 64f32dc7efe18a6fe75c71b31a36ce523290e70c (diff) |
Merge branch 'propagate' into reduce-mac-load
Diffstat (limited to 'src/core/iomgr/wakeup_fd_pipe.c')
-rw-r--r-- | src/core/iomgr/wakeup_fd_pipe.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/iomgr/wakeup_fd_pipe.c b/src/core/iomgr/wakeup_fd_pipe.c index f895478990..9fc4ee2388 100644 --- a/src/core/iomgr/wakeup_fd_pipe.c +++ b/src/core/iomgr/wakeup_fd_pipe.c @@ -44,7 +44,7 @@ #include "src/core/iomgr/socket_utils_posix.h" #include <grpc/support/log.h> -static void pipe_create(grpc_wakeup_fd_info *fd_info) { +static void pipe_init(grpc_wakeup_fd *fd_info) { int pipefd[2]; /* TODO(klempner): Make this nonfatal */ GPR_ASSERT(0 == pipe(pipefd)); @@ -54,7 +54,7 @@ static void pipe_create(grpc_wakeup_fd_info *fd_info) { fd_info->write_fd = pipefd[1]; } -static void pipe_consume(grpc_wakeup_fd_info *fd_info) { +static void pipe_consume(grpc_wakeup_fd *fd_info) { char buf[128]; int r; @@ -74,13 +74,13 @@ static void pipe_consume(grpc_wakeup_fd_info *fd_info) { } } -static void pipe_wakeup(grpc_wakeup_fd_info *fd_info) { +static void pipe_wakeup(grpc_wakeup_fd *fd_info) { char c = 0; while (write(fd_info->write_fd, &c, 1) != 1 && errno == EINTR) ; } -static void pipe_destroy(grpc_wakeup_fd_info *fd_info) { +static void pipe_destroy(grpc_wakeup_fd *fd_info) { close(fd_info->read_fd); close(fd_info->write_fd); } @@ -91,7 +91,7 @@ static int pipe_check_availability(void) { } const grpc_wakeup_fd_vtable grpc_pipe_wakeup_fd_vtable = { - pipe_create, pipe_consume, pipe_wakeup, pipe_destroy, pipe_check_availability -}; + pipe_init, pipe_consume, pipe_wakeup, pipe_destroy, + pipe_check_availability}; #endif /* GPR_POSIX_WAKUP_FD */ |