| 719 | { |
| 720 | public: |
| 721 | void join() |
| 722 | { |
| 723 | // quit all event loops |
| 724 | for (const auto& thread : std::as_const(*this)) { |
| 725 | QVERIFY(thread->isRunning()); |
| 726 | thread->quit(); |
| 727 | } |
| 728 | |
| 729 | // join all threads |
| 730 | constexpr auto timeout = 3'000L; |
| 731 | for (const auto& thread : std::as_const(*this)) { |
| 732 | QVERIFY(thread->wait(timeout)); |
| 733 | QVERIFY(thread->isFinished()); |
| 734 | } |
| 735 | } |
| 736 | void start() |
| 737 | { |
| 738 | for (const QSharedPointer<QThread>& thread : std::as_const(*this)) { |
no test coverage detected