epoll polling strategy now points to the new code

pull/6803/head
Sree Kuchibhotla 9 years ago
parent 0bcbd79baa
commit 73ef915402
  1. 4
      src/core/lib/iomgr/ev_epoll_linux.c
  2. 4
      src/core/lib/iomgr/ev_posix.c

@ -788,16 +788,12 @@ static void sig_handler(int sig_num) {
/* Global state management */
static void pollset_global_init(void) {
gpr_tls_init(&g_current_thread_poller);
gpr_tls_init(&g_current_thread_worker);
grpc_wakeup_fd_init(&grpc_global_wakeup_fd);
signal(SIGUSR1, sig_handler);
}
static void pollset_global_shutdown(void) {
grpc_wakeup_fd_destroy(&grpc_global_wakeup_fd);
gpr_tls_destroy(&g_current_thread_poller);
gpr_tls_destroy(&g_current_thread_worker);
}
/* Return 1 if the pollset has active threads in pollset_work (pollset must

@ -44,7 +44,7 @@
#include <grpc/support/string_util.h>
#include <grpc/support/useful.h>
#include "src/core/lib/iomgr/ev_epoll_posix.h"
#include "src/core/lib/iomgr/ev_epoll_linux.h"
#include "src/core/lib/iomgr/ev_poll_posix.h"
#include "src/core/lib/support/env.h"
@ -62,7 +62,7 @@ typedef struct {
} event_engine_factory;
static const event_engine_factory g_factories[] = {
{"poll", grpc_init_poll_posix}, {"epoll", grpc_init_epoll_posix},
{"poll", grpc_init_poll_posix}, {"epoll", grpc_init_epoll_linux},
};
static void add(const char *beg, const char *end, char ***ss, size_t *ns) {

Loading…
Cancel
Save