clang formatting fixes

pull/8269/head
Sree Kuchibhotla 8 years ago
parent c5fb957e50
commit 85399f0824
  1. 7
      src/cpp/thread_manager/thread_manager.cc
  2. 2
      test/cpp/thread_manager/thread_manager_test.cc

@ -41,17 +41,14 @@
namespace grpc {
ThreadManager::WorkerThread::WorkerThread(ThreadManager* thd_mgr)
: thd_mgr_(thd_mgr),
thd_(&ThreadManager::WorkerThread::Run, this) {}
: thd_mgr_(thd_mgr), thd_(&ThreadManager::WorkerThread::Run, this) {}
void ThreadManager::WorkerThread::Run() {
thd_mgr_->MainWorkLoop();
thd_mgr_->MarkAsCompleted(this);
}
ThreadManager::WorkerThread::~WorkerThread() {
thd_.join();
}
ThreadManager::WorkerThread::~WorkerThread() { thd_.join(); }
ThreadManager::ThreadManager(int min_pollers, int max_pollers)
: shutdown_(false),

@ -104,7 +104,7 @@ grpc::ThreadManager::WorkStatus ThreadManagerTest::PollForWork(void **tag,
void ThreadManagerTest::DoWork(void *tag, bool ok) {
num_do_work_++;
SleepForMs(kDoWorkDurationMsec); // Simulate doing work by sleeping
SleepForMs(kDoWorkDurationMsec); // Simulate doing work by sleeping
}
void ThreadManagerTest::PerformTest() {

Loading…
Cancel
Save