Skip to content
Snippets Groups Projects
Commit 1949efd5 authored by yang-g's avatar yang-g
Browse files

Test for tsan error

parent 4cdb6247
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,7 @@ static void remove_epoll_fd_from_global_list(int epoll_fd) { ...@@ -90,6 +90,7 @@ static void remove_epoll_fd_from_global_list(int epoll_fd) {
void grpc_remove_fd_from_all_epoll_sets(int fd) { void grpc_remove_fd_from_all_epoll_sets(int fd) {
int err; int err;
gpr_once_init(&init_epoll_fd_list_mu, init_mu);
gpr_mu_lock(&epoll_fd_list_mu); gpr_mu_lock(&epoll_fd_list_mu);
if (epoll_fd_global_list.count == 0) { if (epoll_fd_global_list.count == 0) {
return; return;
......
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