| 57 | } |
| 58 | |
| 59 | void ReadManager::Start() |
| 60 | { |
| 61 | if (m_pool != nullptr) |
| 62 | return; |
| 63 | |
| 64 | ASSERT_EQUAL(m_counter, 0, ()); |
| 65 | |
| 66 | m_pool = make_unique_dp<base::ThreadPool>(kReadingThreadsCount, |
| 67 | std::bind(&ReadManager::OnTaskFinished, this, std::placeholders::_1)); |
| 68 | } |
| 69 | |
| 70 | void ReadManager::Stop() |
| 71 | { |
no outgoing calls
no test coverage detected