diff options
author | Craig Tiller <ctiller@google.com> | 2016-01-19 11:50:40 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-01-19 11:50:40 -0800 |
commit | 8e25c259246aad3d59b4b8be63aac85d01f2e3bd (patch) | |
tree | 6fc28e91c70beb6b6fe03ddfd94655fe427142f7 | |
parent | 3bd7ecce16d8bda27ac1268641183512b54f4721 (diff) | |
parent | a49474e2cb1fec509d1de3c83ef3c0c9eeb95065 (diff) |
Merge pull request #4683 from yang-g/epollset
Tsan error fix.
-rw-r--r-- | src/core/iomgr/pollset_multipoller_with_epoll.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/iomgr/pollset_multipoller_with_epoll.c b/src/core/iomgr/pollset_multipoller_with_epoll.c index 911d820fc7..d117485327 100644 --- a/src/core/iomgr/pollset_multipoller_with_epoll.c +++ b/src/core/iomgr/pollset_multipoller_with_epoll.c @@ -90,8 +90,10 @@ static void remove_epoll_fd_from_global_list(int epoll_fd) { void grpc_remove_fd_from_all_epoll_sets(int fd) { int err; + gpr_once_init(&init_epoll_fd_list_mu, init_mu); gpr_mu_lock(&epoll_fd_list_mu); if (epoll_fd_global_list.count == 0) { + gpr_mu_unlock(&epoll_fd_list_mu); return; } for (size_t i = 0; i < epoll_fd_global_list.count; i++) { |