Skip to content
Snippets Groups Projects
Commit 8e25c259 authored by Craig Tiller's avatar Craig Tiller
Browse files

Merge pull request #4683 from yang-g/epollset

Tsan error fix.
parents 3bd7ecce a49474e2
No related branches found
No related tags found
No related merge requests found
......@@ -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++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment