aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-02-25 07:26:01 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-02-25 07:26:01 -0800
commit9c2ad3730c7d8aca928b61427ac62758e283c02c (patch)
treeb68fee00168a5ac9c241c1244f9c384a9b63e0df /src/core
parent07eb5b0ccd41dd96ec8635a9488ae3208a2f08f8 (diff)
pollset_set integration
Diffstat (limited to 'src/core')
-rw-r--r--src/core/iomgr/ev_poll_and_epoll_posix.c21
-rw-r--r--src/core/iomgr/ev_posix.h1
2 files changed, 22 insertions, 0 deletions
diff --git a/src/core/iomgr/ev_poll_and_epoll_posix.c b/src/core/iomgr/ev_poll_and_epoll_posix.c
index 55f5ec2758..ea9cc63a18 100644
--- a/src/core/iomgr/ev_poll_and_epoll_posix.c
+++ b/src/core/iomgr/ev_poll_and_epoll_posix.c
@@ -63,6 +63,7 @@
#include "src/core/iomgr/iomgr_internal.h"
#include "src/core/iomgr/wakeup_fd_posix.h"
+#include "src/core/iomgr/pollset_set_posix.h"
#include "src/core/profiling/timers.h"
#include "src/core/support/block_annotate.h"
@@ -282,6 +283,26 @@ extern grpc_poll_function_type grpc_poll_function;
extern grpc_wakeup_fd grpc_global_wakeup_fd;
/*******************************************************************************
+ * pollset_set definitions
+ */
+
+struct grpc_pollset_set {
+ gpr_mu mu;
+
+ size_t pollset_count;
+ size_t pollset_capacity;
+ grpc_pollset **pollsets;
+
+ size_t pollset_set_count;
+ size_t pollset_set_capacity;
+ struct grpc_pollset_set **pollset_sets;
+
+ size_t fd_count;
+ size_t fd_capacity;
+ grpc_fd **fds;
+};
+
+/*******************************************************************************
* fd_posix.c
*/
diff --git a/src/core/iomgr/ev_posix.h b/src/core/iomgr/ev_posix.h
index 03e2b0c01c..25888fb463 100644
--- a/src/core/iomgr/ev_posix.h
+++ b/src/core/iomgr/ev_posix.h
@@ -36,6 +36,7 @@
#include "src/core/iomgr/exec_ctx.h"
#include "src/core/iomgr/pollset.h"
+#include "src/core/iomgr/pollset_set.h"
typedef struct grpc_fd grpc_fd;