diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-05-18 10:26:44 -0700 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-05-18 10:26:44 -0700 |
commit | 236d098395c5360e90f224435a14bed7f2cce6f2 (patch) | |
tree | 340951ef5ebac0cad8d229b92f3db97f27414f4e /src/core | |
parent | 354bf6d77ba0c89288d8196abeebb6cb764d5a22 (diff) |
Add another little comment
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/iomgr/fd_posix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/iomgr/fd_posix.c b/src/core/iomgr/fd_posix.c index 4cbc46cd17..3ff27631be 100644 --- a/src/core/iomgr/fd_posix.c +++ b/src/core/iomgr/fd_posix.c @@ -347,16 +347,19 @@ void grpc_fd_end_poll(grpc_fd_watcher *watcher, int got_read, int got_write) { gpr_mu_lock(&fd->watcher_mu); if (watcher == fd->read_watcher) { + /* remove read watcher, kick if we still need a read */ was_polling = 1; kick |= !got_read; fd->read_watcher = NULL; } if (watcher == fd->write_watcher) { + /* remove write watcher, kick if we still need a write */ was_polling = 1; kick |= !got_write; fd->write_watcher = NULL; } if (!was_polling) { + /* remove from inactive list */ watcher->next->prev = watcher->prev; watcher->prev->next = watcher->next; } |