Clang format.

pull/21216/head
Guantao Liu 5 years ago
parent 5d24c1c6e2
commit 13929e69ae
  1. 7
      src/core/lib/iomgr/poller/eventmanager_libuv.cc
  2. 3
      test/core/iomgr/poller/eventmanager_libuv_test.cc

@ -34,9 +34,10 @@ grpc::experimental::LibuvEventManager::LibuvEventManager(const Options& options)
if (num_workers <= 0) num_workers = 32;
for (int i = 0; i < num_workers; i++) {
workers_.emplace_back(options_.thread_name_prefix().c_str(),
[](void* em) { static_cast<LibuvEventManager*>(em)->RunWorkerLoop(); },
this);
workers_.emplace_back(
options_.thread_name_prefix().c_str(),
[](void* em) { static_cast<LibuvEventManager*>(em)->RunWorkerLoop(); },
this);
workers_.back().Start();
}
}

@ -58,7 +58,8 @@ 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", [em](void*) { delete em; }, nullptr);
deleter.Start();
gpr_sleep_until(grpc_timeout_milliseconds_to_deadline(1));
for (int j = 0; j < i; j++) {

Loading…
Cancel
Save