| 472 | } |
| 473 | |
| 474 | void ConcurrentQueueTest::singleUserThread() |
| 475 | { |
| 476 | QFETCH(const int, threadCount); |
| 477 | QFETCH(const JobDataSet, jobs); |
| 478 | |
| 479 | const auto printer = makeMessagePrinter(threadCount); |
| 480 | |
| 481 | ConcurrentQueue queue(threadCount); |
| 482 | printer.printStartedMessage(); |
| 483 | |
| 484 | Enqueuer(queue, total, jobs, primaryThreadId)(); |
| 485 | |
| 486 | waitAndPrint(queue, printer); |
| 487 | |
| 488 | QCOMPARE(total.load(), expectedTotal(jobs)); |
| 489 | } |
| 490 | |
| 491 | void ConcurrentQueueTest::multipleUserThreads_data() |
| 492 | { |
nothing calls this directly
no test coverage detected