From 7a59b56e53020e655f83d65c165dfb8c228ddf4d Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 13 Apr 2017 14:20:47 -0700 Subject: [PATCH] sketching pollable set --- src/core/lib/iomgr/ev_epollex_linux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/lib/iomgr/ev_epollex_linux.c b/src/core/lib/iomgr/ev_epollex_linux.c index a8d7b54887d..0b3e2b13fc8 100644 --- a/src/core/lib/iomgr/ev_epollex_linux.c +++ b/src/core/lib/iomgr/ev_epollex_linux.c @@ -177,7 +177,11 @@ struct grpc_pollset_worker { struct grpc_pollset { polling_obj po; - int epfd; + /* Pollable set - possible values: + 0 - nothing is pollable + pointer | 1 - a single pollable file descriptor + (fd << 1) | 0 - an epoll fd */ + gpr_atm pollable_set_atm; int num_pollers; bool kicked_without_poller; gpr_atm shutdown_atm;