Selaa lähdekoodia

Test for tsan error

yang-g 9 vuotta sitten
vanhempi
commit
1949efd542
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/core/iomgr/pollset_multipoller_with_epoll.c

+ 1 - 0
src/core/iomgr/pollset_multipoller_with_epoll.c

@@ -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) {
   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) {
     return;