pollset_set integration

pull/5647/head
Craig Tiller 9 years ago
parent 07eb5b0ccd
commit 9c2ad3730c
  1. 21
      src/core/iomgr/ev_poll_and_epoll_posix.c
  2. 1
      src/core/iomgr/ev_posix.h

@ -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"
@ -281,6 +282,26 @@ typedef int (*grpc_poll_function_type)(struct pollfd *, nfds_t, int);
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
*/

@ -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;

Loading…
Cancel
Save