pull/5647/head
Craig Tiller 9 years ago
parent 04239b9045
commit 0841e4f1d0
  1. 12
      src/core/iomgr/ev_posix.h
  2. 2
      src/core/iomgr/pollset.h
  3. 2
      src/core/iomgr/pollset_posix.h
  4. 2
      src/core/iomgr/pollset_set_posix.h

@ -34,18 +34,22 @@
#ifndef GRPC_INTERNAL_CORE_IOMGR_EV_POSIX_H
#define GRPC_INTERNAL_CORE_IOMGR_EV_POSIX_H
#include "src/core/iomgr/exec_ctx.h"
typedef struct grpc_fd grpc_fd;
typedef struct grpc_pollset grpc_pollset;
typedef struct grpc_pollset_worker grpc_pollset_worker;
typedef struct grpc_event_engine_vtable {
grpc_fd *(*fd_create)(int fd, const char *name);
int (*fd_wrapped_fd)(grpc_fd *fd);
void (*fd_orphan)(grpc_exec_ctx *exec_ctx, grpc_fd *fd, grpc_closure *on_done,
int *release_fd, const char *reason);
int *release_fd, const char *reason);
void (*fd_shutdown)(grpc_exec_ctx *exec_ctx, grpc_fd *fd);
void (*fd_notify_on_read)(grpc_exec_ctx *exec_ctx, grpc_fd *fd,
grpc_closure *closure);
grpc_closure *closure);
void (*fd_notify_on_write)(grpc_exec_ctx *exec_ctx, grpc_fd *fd,
grpc_closure *closure);
grpc_closure *closure);
} grpc_event_engine_vtable;
extern const grpc_event_engine_vtable *grpc_event_engine;
@ -94,4 +98,4 @@ void grpc_fd_notify_on_read(grpc_exec_ctx *exec_ctx, grpc_fd *fd,
void grpc_fd_notify_on_write(grpc_exec_ctx *exec_ctx, grpc_fd *fd,
grpc_closure *closure);
#endif // GRPC_INTERNAL_CORE_IOMGR_EV_POSIX_H
#endif // GRPC_INTERNAL_CORE_IOMGR_EV_POSIX_H

@ -47,7 +47,7 @@
that is servicing a call that it's tracking */
#ifdef GPR_POSIX_SOCKET
#include "src/core/iomgr/pollset_posix.h"
#include "src/core/iomgr/ev_posix.h"
#endif
#ifdef GPR_WIN32

@ -34,6 +34,7 @@
#ifndef GRPC_INTERNAL_CORE_IOMGR_POLLSET_POSIX_H
#define GRPC_INTERNAL_CORE_IOMGR_POLLSET_POSIX_H
#if 0
#include <poll.h>
#include <grpc/support/sync.h>
@ -145,5 +146,6 @@ void grpc_remove_fd_from_all_epoll_sets(int fd);
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;
#endif
#endif /* GRPC_INTERNAL_CORE_IOMGR_POLLSET_POSIX_H */

@ -34,8 +34,8 @@
#ifndef GRPC_INTERNAL_CORE_IOMGR_POLLSET_SET_POSIX_H
#define GRPC_INTERNAL_CORE_IOMGR_POLLSET_SET_POSIX_H
#include <grpc/support/sync.h>
#include "src/core/iomgr/ev_posix.h"
#include "src/core/iomgr/pollset_posix.h"
typedef struct grpc_pollset_set {
gpr_mu mu;

Loading…
Cancel
Save