diff options
author | 2015-07-08 15:31:35 -0700 | |
---|---|---|
committer | 2015-07-08 15:31:35 -0700 | |
commit | 97fc6a3f3f6e3bbb39b6fda1444bc533deb8803d (patch) | |
tree | a8eeea51f1d682c7069c31344de1a3f0f192aaeb /src/core/iomgr/pollset_multipoller_with_epoll.c | |
parent | c6964b1d980df3c8809809ef05c954626cdda95f (diff) |
Rewrite completion queue internals to use pre-allocation of events
Diffstat (limited to 'src/core/iomgr/pollset_multipoller_with_epoll.c')
-rw-r--r-- | src/core/iomgr/pollset_multipoller_with_epoll.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/iomgr/pollset_multipoller_with_epoll.c b/src/core/iomgr/pollset_multipoller_with_epoll.c index 1900bbf9e1..3746c8edaf 100644 --- a/src/core/iomgr/pollset_multipoller_with_epoll.c +++ b/src/core/iomgr/pollset_multipoller_with_epoll.c @@ -105,10 +105,11 @@ static void multipoll_with_epoll_pollset_maybe_work( * here. */ - timeout_ms = grpc_poll_deadline_to_millis_timeout(deadline, now); pollset->counter += 1; gpr_mu_unlock(&pollset->mu); + timeout_ms = grpc_poll_deadline_to_millis_timeout(deadline, now); + do { ep_rv = epoll_wait(h->epoll_fd, ep_ev, GRPC_EPOLL_MAX_EVENTS, timeout_ms); if (ep_rv < 0) { |