MCPcopy Create free account
hub / github.com/YACReader/yacreader / singleUserThread

Method singleUserThread

tests/concurrent_queue_test/concurrent_queue_test.cpp:474–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void 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
491void ConcurrentQueueTest::multipleUserThreads_data()
492{

Callers

nothing calls this directly

Calls 5

EnqueuerClass · 0.85
waitAndPrintFunction · 0.85
expectedTotalFunction · 0.85
printStartedMessageMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected