Fix formatting

pull/20376/head
Vijay Pai 5 years ago
parent 827fd04402
commit f586be8532
  1. 9
      src/cpp/thread_manager/thread_manager.cc

@ -34,13 +34,9 @@ ThreadManager::WorkerThread::WorkerThread(ThreadManager* thd_mgr)
thd_ = grpc_core::Thread( thd_ = grpc_core::Thread(
"grpcpp_sync_server", "grpcpp_sync_server",
[](void* th) { static_cast<ThreadManager::WorkerThread*>(th)->Run(); }, [](void* th) { static_cast<ThreadManager::WorkerThread*>(th)->Run(); },
this, this, &created_);
&created_
);
if (!created_) { if (!created_) {
gpr_log(GPR_ERROR, gpr_log(GPR_ERROR, "Could not create grpc_sync_server worker-thread");
"Could not create grpc_sync_server worker-thread"
);
} else { } else {
thd_.Start(); thd_.Start();
} }
@ -51,7 +47,6 @@ void ThreadManager::WorkerThread::Run() {
thd_mgr_->MarkAsCompleted(this); thd_mgr_->MarkAsCompleted(this);
} }
ThreadManager::WorkerThread::~WorkerThread() { ThreadManager::WorkerThread::~WorkerThread() {
// Don't join until the thread is fully constructed. // Don't join until the thread is fully constructed.
thd_.Join(); thd_.Join();

Loading…
Cancel
Save