| 181 | } |
| 182 | |
| 183 | void TestWaiter::startThreadsAndWaitForFinished() |
| 184 | { |
| 185 | if (m_threads.isEmpty() && m_tester.isEmpty()) |
| 186 | return; |
| 187 | |
| 188 | for (TestThread *thread : std::as_const(m_threads)) { |
| 189 | thread->start(); |
| 190 | } |
| 191 | |
| 192 | m_loop = new QEventLoop; |
| 193 | m_loop->exec(); |
| 194 | delete m_loop; |
| 195 | m_loop = nullptr; |
| 196 | } |
| 197 | |
| 198 | // END TestWaiter |
| 199 |