Fix build errors.

pull/21216/head
Guantao Liu 5 years ago
parent de41234f66
commit 2d153a5fe3
  1. 4
      test/core/iomgr/poller/eventmanager_libuv_test.cc

@ -58,7 +58,9 @@ TEST(LibuvEventManager, ShutdownRefAsync) {
for (int j = 0; j < i; j++) {
em->ShutdownRef();
}
grpc_core::Thread deleter("deleter", [em](void*) { delete em; }, nullptr);
grpc_core::Thread deleter(
"deleter", [](void* em) { delete static_cast<LibuvEventManager*>(em); },
em);
deleter.Start();
gpr_sleep_until(grpc_timeout_milliseconds_to_deadline(1));
for (int j = 0; j < i; j++) {

Loading…
Cancel
Save