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

Method testLockForWrite

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

Source from the content-addressed store, hash-verified

742};
743
744void TestDUChain::testLockForWrite()
745{
746 ThreadList threads;
747 for (int i = 0; i < 10; ++i) {
748 threads << TestWorker::createWorkerThread(SLOT(lockForWrite()));
749 }
750
751 threads.start();
752 QBENCHMARK {
753 {
754 DUChainWriteLocker lock;
755 }
756 {
757 DUChainReadLocker lock;
758 }
759 }
760 threads.join();
761}
762
763void TestDUChain::testLockForRead()
764{

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected