MCPcopy Create free account
hub / github.com/KDE/kdiff3 / run

Method run

src/difftextwindow.cpp:85–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 chk_connect_a(this, &RecalcWordWrapRunner::finishRecalcWordWrap, pDTW, &DiffTextWindow::fwdFinishRecalcWordWrap);
84 }
85 void run()
86 {
87 Q_EMIT recalcWordWrapHelper(0, m_visibleTextWidth, m_cacheIdx);
88 size_t newValue = s_runnableCount.fetchAndSubOrdered(1) - 1;
89 ProgressProxy::setCurrent(s_maxNofRunnables - s_runnableCount.loadRelaxed());
90 if(newValue == 0)
91 {
92 Q_EMIT finishRecalcWordWrap(m_visibleTextWidth);
93
94 s_maxNofRunnables.storeRelease(0);
95 }
96 //Cleanup our object to avoid a memory leak
97 deleteLater();
98 }
99};
100
101QAtomicInteger<size_t> RecalcWordWrapRunner::s_runnableCount = 0;

Callers 1

startRunnablesMethod · 0.80

Calls 1

setCurrentFunction · 0.85

Tested by

no test coverage detected