diff options
author | Vijay Pai <vpai@google.com> | 2015-09-25 21:40:19 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2015-09-25 21:40:19 -0700 |
commit | 8c7665e06d16b4978c2d09203f3ab75e0d0b698b (patch) | |
tree | f93117c4390f12e133bc17a65c4376e4ee706da1 /src/core/iomgr/pollset_multipoller_with_poll_posix.c | |
parent | b09a8759174531790b38cc67079e0b836a519c0a (diff) |
Add some TODO comments for possible poll optimization
Diffstat (limited to 'src/core/iomgr/pollset_multipoller_with_poll_posix.c')
-rw-r--r-- | src/core/iomgr/pollset_multipoller_with_poll_posix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/iomgr/pollset_multipoller_with_poll_posix.c b/src/core/iomgr/pollset_multipoller_with_poll_posix.c index 44031b8ef6..63e0b9edb9 100644 --- a/src/core/iomgr/pollset_multipoller_with_poll_posix.c +++ b/src/core/iomgr/pollset_multipoller_with_poll_posix.c @@ -148,6 +148,8 @@ static void multipoll_with_poll_pollset_maybe_work_and_unlock( POLLOUT, &watchers[i]); } + /* TODO(vpai): Consider first doing a 0 timeout poll here to avoid + even going into the blocking annotation if possible */ GRPC_SCHEDULING_START_BLOCKING_REGION; r = grpc_poll_function(pfds, pfd_count, timeout); GRPC_SCHEDULING_END_BLOCKING_REGION; |