diff options
author | Craig Tiller <ctiller@google.com> | 2015-05-29 08:56:46 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-05-29 08:56:46 -0700 |
commit | c95de720a851ab91bb52ae9ae0b01cf8c4ca5916 (patch) | |
tree | 6707d27aa6dee7c95b7ec7f6431792c49d725077 /src/core | |
parent | 017912dac9a212a91b0ded2b610412980fa5e4d2 (diff) |
Rename function for clarity
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/iomgr/fd_posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/iomgr/fd_posix.c b/src/core/iomgr/fd_posix.c index 9a5678d27b..b697fcc64a 100644 --- a/src/core/iomgr/fd_posix.c +++ b/src/core/iomgr/fd_posix.c @@ -165,7 +165,7 @@ static void maybe_wake_one_watcher(grpc_fd *fd) { gpr_mu_unlock(&fd->watcher_mu); } -static void wake_all_watchers(grpc_fd *fd) { +static void wake_all_watchers_locked(grpc_fd *fd) { grpc_fd_watcher *watcher; for (watcher = fd->inactive_watcher_root.next; watcher != &fd->inactive_watcher_root; watcher = watcher->next) { @@ -185,7 +185,7 @@ void grpc_fd_orphan(grpc_fd *fd, grpc_iomgr_cb_func on_done, void *user_data) { shutdown(fd->fd, SHUT_RDWR); ref_by(fd, 1); /* remove active status, but keep referenced */ gpr_mu_lock(&fd->watcher_mu); - wake_all_watchers(fd); + wake_all_watchers_locked(fd); gpr_mu_unlock(&fd->watcher_mu); unref_by(fd, 2); /* drop the reference */ } |