moved created() into header file

pull/20376/head
Christian Maurer 5 years ago
parent bbb66caa64
commit 827fd04402
  1. 4
      src/cpp/thread_manager/thread_manager.cc
  2. 2
      src/cpp/thread_manager/thread_manager.h

@ -52,10 +52,6 @@ void ThreadManager::WorkerThread::Run() {
}
inline bool ThreadManager::WorkerThread::created() const {
return created_;
}
ThreadManager::WorkerThread::~WorkerThread() {
// Don't join until the thread is fully constructed.
thd_.Join();

@ -124,7 +124,7 @@ class ThreadManager {
WorkerThread(ThreadManager* thd_mgr);
~WorkerThread();
bool created() const;
bool created() const { return created_; }
private:
// Calls thd_mgr_->MainWorkLoop() and once that completes, calls
// thd_mgr_>MarkAsCompleted(this) to mark the thread as completed

Loading…
Cancel
Save