Clang format.

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

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

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

Loading…
Cancel
Save