MCPcopy Create free account
hub / github.com/KDE/kdevelop / testLockForRead

Method testLockForRead

kdevplatform/language/duchain/tests/test_duchain.cpp:763–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763void TestDUChain::testLockForRead()
764{
765 ThreadList threads;
766 for (int i = 0; i < 10; ++i) {
767 threads << TestWorker::createWorkerThread(SLOT(lockForRead()));
768 }
769
770 threads.start();
771 QBENCHMARK {
772 DUChainReadLocker lock;
773 }
774 threads.join();
775}
776
777void TestDUChain::testLockForReadWrite()
778{

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected