| 22 | {} |
| 23 | |
| 24 | virtual void Do() |
| 25 | { |
| 26 | while (!m_p.IsCancelled()) |
| 27 | { |
| 28 | int res = m_p.Front(true /* doPop */); |
| 29 | { |
| 30 | std::lock_guard<std::mutex> resGuard(m_resMutex); |
| 31 | m_res.push_back(res); |
| 32 | } |
| 33 | LOG(LINFO, (m_id, " thread got ", res)); |
| 34 | threads::Sleep(10); |
| 35 | } |
| 36 | LOG(LINFO, (m_id, " thread is cancelled")); |
| 37 | } |
| 38 | }; |
| 39 | |
| 40 | UNIT_TEST(ThreadedList) |
nothing calls this directly
no test coverage detected